From 1cd32c047cbcdb8169e1d013922c846c374d500a Mon Sep 17 00:00:00 2001 From: hondew Date: Sun, 21 Mar 2021 10:07:09 -0400 Subject: Fix more broken relocations --- tools/asm_processor/asm_processor.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tools/asm_processor/asm_processor.py') 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__": -- cgit v1.2.3