Use relocation table with reccmp (#327)

This commit is contained in:
MS
2023-12-13 17:30:34 -05:00
committed by GitHub
parent 403b3dddb4
commit 5f8e26fc5b
3 changed files with 51 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ def sanitize(file, placeholder_generator, mnemonic, op_str):
for i, word in enumerate(words):
try:
inttest = int(word, 16)
if inttest >= file.get_section_offset_by_index(1):
if file.is_relocated_addr(inttest):
words[i] = placeholder_generator.get(inttest)
except ValueError:
pass