mirror of
https://github.com/rui314/mold.git
synced 2024-09-22 10:27:48 +03:00
temporary
This commit is contained in:
parent
be495be89f
commit
b81d7d30e7
3
main.cc
3
main.cc
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user