Enable passing an elf.Function to flat()

This commit is contained in:
Zach Riggle committed 2017-01-07 18:14:57 -05:00
1 parent bd88c92991
commit 0c8006ca4e
1 file changed
+3
+3
View File
@@ -97,6 +97,9 @@ class Function(object):
self.elf
)
def __flag__(self):
return packing.pack(self.address)
def load(*args, **kwargs):
"""Compatibility wrapper for pwntools v1"""
return ELF(*args, **kwargs)