Skip to content

Commit

Permalink
Added arch and bits specific flag to asm call from elf wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
en0 committed Nov 13, 2022
1 parent 0a7c0b6 commit 51fa8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/elf/elf.py
Expand Up @@ -1535,7 +1535,7 @@ def asm(self, address, assembly):
This modifies the ELF in-place.
The resulting binary can be saved with :meth:`.ELF.save`
"""
binary = asm(assembly, vma=address)
binary = asm(assembly, vma=address, arch=self.arch, endian=self.endian, bits=self.bits)
self.write(address, binary)

def bss(self, offset=0):
Expand Down

0 comments on commit 51fa8cc

Please sign in to comment.