1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-26 18:02:30 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-03 22:39:44 +09:00
parent 45da33c5fa
commit 2791f3fb3a

View File

@ -76,8 +76,7 @@ void InputSection::scan_relocations() {
void InputSection::relocate(u8 *buf) {
for (const ELF64LE::Rela &rel : rels) {
u32 sym_idx = rel.getSymbol(false);
Symbol *sym = file->symbols[sym_idx];
Symbol *sym = file->symbols[rel.getSymbol(false)];
u8 *loc = buf + output_section->shdr.sh_offset + offset + rel.r_offset;
u64 G = sym->got_offset;