Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillou68310 committed Feb 11, 2025
1 parent 7802ff1 commit b8911c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2087,7 +2087,7 @@ def process_reloc(self, row: str, prev: str) -> Tuple[str, Optional[str]]:
# Example *0x0(,%edx,4)
# Example $0x0,0x4(%edi)
if not addr_imm:
addr_imm = re.search(r"(^\$?|(?<=\*))(?:0x)?0", args)
addr_imm = re.search(r"(^\$?|(?<=\*))(?:0x)?0(?!x)", args)

# Offset value

Expand Down Expand Up @@ -2611,7 +2611,7 @@ class ArchSettings:
# This destroys the objdump output processor logic, so we avoid this.
arch_flags=["--no-show-raw-insn"],
branch_instructions=X86_BRANCH_INSTRUCTIONS,
instructions_with_address_immediates=X86_BRANCH_INSTRUCTIONS.union({"mov"}),
instructions_with_address_immediates=X86_BRANCH_INSTRUCTIONS.union({"mov", "call"}),
proc=AsmProcessorX86,
)

Expand Down

0 comments on commit b8911c7

Please sign in to comment.