summaryrefslogtreecommitdiff
path: root/tools/asm_processor/asm_processor.py
diff options
context:
space:
mode:
authorhondew <pokehondew@gmail.com>2021-03-20 18:24:59 -0400
committerhondew <pokehondew@gmail.com>2021-03-20 18:24:59 -0400
commit140718cbb2a99495ef465b4528958ed780f96904 (patch)
treec5f8a3593e123a2fe8a8ce2fa885f3cacdbfd49d /tools/asm_processor/asm_processor.py
parenta70ceda94c9daac7c1576dcf6c9b82c24e8167b0 (diff)
Fix bug preventing relocations from getting updated and inserted
Diffstat (limited to 'tools/asm_processor/asm_processor.py')
-rw-r--r--tools/asm_processor/asm_processor.py3
1 files changed, 1 insertions, 2 deletions
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