From e3de8cdd6571bc909fb50fc151df46634466fb2d Mon Sep 17 00:00:00 2001 From: 1superchip <1superchip@gmail.com> Date: Sun, 22 Feb 2026 12:10:45 -0600 Subject: [PATCH 1/2] Fix #206 --- diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff.py b/diff.py index 32bb202..c9efb1c 100755 --- a/diff.py +++ b/diff.py @@ -3003,7 +3003,7 @@ class ArchSettings: ), re_large_imm=re.compile(r"-?[1-9][0-9]{2,}|-?0x[0-9a-f]{3,}"), re_sprel=re.compile(r"(-?0x[0-9a-f]+|-?[0-9]+)(?=\((%ebp|%esi)\))"), - re_imm=re.compile(r"(?:\b|-)(0x[0-9a-f]+|[0-9]+)|([\?$_][^ \t,]+)"), + re_imm=re.compile(r"(?:\b|-)(0x[0-9a-f]+|[0-9]+)|([\?$_][^ \t,]+)|(%(plt|got)\([^)]*\))"), re_reloc=re.compile( r"R_386_|dir32|DISP32|WRTSEG|OFF32|OFFPC32|OFF16|OFFPC16|SEG|FAR16" ), From 2413b7aea2f0995d057bab52e5e641add923e257 Mon Sep 17 00:00:00 2001 From: 1superchip <1superchip@gmail.com> Date: Sun, 22 Feb 2026 12:12:08 -0600 Subject: [PATCH 2/2] Fix formatting --- diff.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diff.py b/diff.py index c9efb1c..3440774 100755 --- a/diff.py +++ b/diff.py @@ -3003,7 +3003,9 @@ class ArchSettings: ), re_large_imm=re.compile(r"-?[1-9][0-9]{2,}|-?0x[0-9a-f]{3,}"), re_sprel=re.compile(r"(-?0x[0-9a-f]+|-?[0-9]+)(?=\((%ebp|%esi)\))"), - re_imm=re.compile(r"(?:\b|-)(0x[0-9a-f]+|[0-9]+)|([\?$_][^ \t,]+)|(%(plt|got)\([^)]*\))"), + re_imm=re.compile( + r"(?:\b|-)(0x[0-9a-f]+|[0-9]+)|([\?$_][^ \t,]+)|(%(plt|got)\([^)]*\))" + ), re_reloc=re.compile( r"R_386_|dir32|DISP32|WRTSEG|OFF32|OFFPC32|OFF16|OFFPC16|SEG|FAR16" ),