Skip to content

Commit

Permalink
Remove leading $ in offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillou68310 committed Feb 11, 2025
1 parent b8911c7 commit 3045036
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,10 @@ def process_reloc(self, row: str, prev: str) -> Tuple[str, Optional[str]]:
assert False, f"unknown relocation type '{row}' for line '{prev}'"

if offset:
repl = f"{repl}+{addr_imm.group()}"
of = addr_imm.group()
if of[0] == "$":
of = of[1:]
repl = f"{repl}+{of}"

return f"{mnemonic}\t{args[:start]+repl+args[end:]}", repl

Expand Down

0 comments on commit 3045036

Please sign in to comment.