Commits

Chris Perl committed e0d0ccd

Save file path in top level object

Comments (0)

Files changed (1)

     """
     def __new__(cls, path):
         obj = super(ELF, cls).__new__(cls)
+        obj.path = path
         obj.SYMBOLIC = True
+
         f = open(path, 'r')
         obj.hdr = obj.header = ElfHeader(f, owner=obj)
         obj.sht = obj.section_header_table = SectionHeaderTable(obj.hdr, f)