From 2791f3fb3a76cfa98e03fb4993c0e1de342976f1 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 3 Nov 2020 22:39:44 +0900 Subject: [PATCH] temporary --- input_sections.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/input_sections.cc b/input_sections.cc index 966cb19b..85faeb53 100644 --- a/input_sections.cc +++ b/input_sections.cc @@ -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;