Skip to content

Commit

Permalink
ArchPcode: long should be 32 bits on 32-bit arches.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfish committed Mar 8, 2024
1 parent 5d27d50 commit a7fd876
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion archinfo/arch_pcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ def __init__(self, language: Union["pypcode.ArchLanguage", str]):
self.bits = int(language.size)
self.endness = {"little": Endness.LE, "big": Endness.BE}[language.endian]
self.instruction_endness = self.endness
self.sizeof = {"short": 16, "int": 32, "long": 64, "long long": 64}
self.sizeof = (
{"short": 16, "int": 32, "long": 64, "long long": 64}
if self.bits == 64
else {"short": 16, "int": 32, "long": 32, "long long": 64}
)
self.elf_tls = TLSArchInfo(1, 8, [], [0], [], 0, 0)

# Build registers list
Expand Down

0 comments on commit a7fd876

Please sign in to comment.