From 140718cbb2a99495ef465b4528958ed780f96904 Mon Sep 17 00:00:00 2001 From: hondew Date: Sat, 20 Mar 2021 18:24:59 -0400 Subject: Fix bug preventing relocations from getting updated and inserted --- tools/asm_processor/asm_processor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/asm_processor') diff --git a/tools/asm_processor/asm_processor.py b/tools/asm_processor/asm_processor.py index e1540c0c..5156ec11 100644 --- a/tools/asm_processor/asm_processor.py +++ b/tools/asm_processor/asm_processor.py @@ -1153,8 +1153,7 @@ def fixup_objfile(objfile_name, functions, asm_prelude, assembler, output_enc): for reltab in target.relocated_by: nrels = [] for rel in reltab.relocations: - if (sectype == '.text' and rel.r_offset in modified_text_positions or - sectype == '.rodata' and rel.r_offset in jtbl_rodata_positions) or sectype == ".sbss2": + if (sectype == '.rodata' and rel.r_offset in jtbl_rodata_positions) or sectype == ".sbss2": # don't include relocations for late_rodata dummy code continue # hopefully we don't have relocations for local or -- cgit v1.2.3