diff options
author | Akira Akashi <rubenru09@aol.com> | 2021-03-21 16:22:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 16:22:49 +0000 |
commit | fb964706e274a82207711d3c73e0ced664586a08 (patch) | |
tree | f0f81eeb1e8ad3d2a0400b72a0215c29829c2e12 /tools/asm_processor/asm_processor.py | |
parent | 00ecc6db377847f7199cb3f1c443497ef3581bfe (diff) | |
parent | cd9eb8c0276e74498b2ad0db2367bd6f76549f19 (diff) |
Merge pull request #341 from hondew/asmproc-multiple
Asmproc: Fix more broken relocations
Diffstat (limited to 'tools/asm_processor/asm_processor.py')
-rwxr-xr-x | tools/asm_processor/asm_processor.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/asm_processor/asm_processor.py b/tools/asm_processor/asm_processor.py index c3579b04..ec01c68e 100755 --- a/tools/asm_processor/asm_processor.py +++ b/tools/asm_processor/asm_processor.py @@ -908,7 +908,6 @@ def parse_source(f, opt, framepointer, input_enc, output_enc, print_source=None) # same name in fix_objfile(). def convert_func_name(asm_func_name, to_copy): for sec_name, func_data in to_copy.items(): - print(sec_name, func_data) if func_data and func_data[0][4] == asm_func_name: return func_data[0][2] return '' @@ -1193,9 +1192,6 @@ def fixup_objfile(objfile_name, functions, asm_prelude, assembler, output_enc): for reltab in source.relocated_by: for rel in reltab.relocations: rel.sym_index = asm_objfile.symtab.symbol_entries[rel.sym_index].new_index - # I suspect that this is requried for matching. If the after linking the - # binary doesn't match, retry after commenting out the following line: - rel.r_addend = 0 if sectype == '.rodata' and rel.r_offset in moved_late_rodata: rel.r_offset = moved_late_rodata[rel.r_offset] new_data = b''.join(rel.to_bin() for rel in reltab.relocations) @@ -1266,6 +1262,7 @@ def run(argv, outfile=sys.stdout.buffer): try: run_wrapped(argv, outfile) except Failure as e: + print("Error:", e, file=sys.stderr) sys.exit(1) if __name__ == "__main__": |