1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 10:27:48 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-01 19:49:53 +09:00
parent be495be89f
commit b81d7d30e7
2 changed files with 2 additions and 2 deletions

View File

@ -576,7 +576,8 @@ int main(int argc, char **argv) {
u32 plt_offset = 0;
out::got->symbols.reserve(out::got->size / 8);
out::got->symbols.reserve(out::gotplt->size / 8);
out::gotplt->symbols.reserve(out::gotplt->size / 8);
out::plt->symbols.reserve(out::plt->size / 16);
for (ObjectFile *file : files) {
for (Symbol *sym : file->symbols) {

View File

@ -216,7 +216,6 @@ void PltSection::relocate(u8 *buf) {
u64 S = out::gotplt->shdr.sh_addr + i * 8;
*(u32 *)(buf + i * 16 + 2) = S - P;
buf += 16;
}
}