Skip to content

Commit

Permalink
Merge 4635de3 into f03582f
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Nov 29, 2023
2 parents f03582f + 4635de3 commit 8e429f9
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/context/__init__.py
Expand Up @@ -787,7 +787,7 @@ def arch(self, arch):
try:
defaults = self.architectures[arch]
except KeyError:
raise AttributeError('AttributeError: arch must be one of %r' % sorted(self.architectures))
raise AttributeError('AttributeError: arch (%r) must be one of %r' % (arch, sorted(self.architectures)))

for k,v in defaults.items():
if k not in self._tls:
Expand Down
Binary file added pwnlib/data/elf/test-x32
Binary file not shown.
Binary file added pwnlib/data/elf/test-x32-pie
Binary file not shown.
Binary file added pwnlib/data/elf/test-x32-relro
Binary file not shown.
Binary file added pwnlib/data/elf/test-x32-relro-pie
Binary file not shown.
1 change: 1 addition & 0 deletions pwnlib/elf/elf.py
Expand Up @@ -460,6 +460,7 @@ def _describe(self, *a, **kw):
def get_machine_arch(self):
return {
('EM_X86_64', 64): 'amd64',
('EM_X86_64', 32): 'amd64', # x32 ABI
('EM_386', 32): 'i386',
('EM_486', 32): 'i386',
('EM_ARM', 32): 'arm',
Expand Down

0 comments on commit 8e429f9

Please sign in to comment.