Skip to content
Snippets Groups Projects
Commit 1ab2f6f9 authored by Joe Garcia's avatar Joe Garcia
Browse files

fix header dump

parent 28b9f7ac
No related branches found
No related tags found
No related merge requests found
......@@ -105,13 +105,17 @@ def dump_macho_headers(path):
print('Header '+repr(i))
for k,v in vars(header).items():
print(k+':'+repr(v))
if header.mach_header is not headerclass:
print('header class is '+repr(header.mach_header)+' not '+repr(headerclass))
continue
if header.mach_header is macholib.mach_o.mach_header_64:
print("Header 64 bit")
elif header.mach_header is macholib.mach_o.mach_header:
print("Header 32 bit")
else:
print("Header unknown {}".format(header.mach_header))
print('commands:')
hadProperHeader=True
for cmd in header.commands:
print(cmd)
if hasattr(header,'commands'):
for cmd in header.commands:
print(cmd)
def macho_get_rpath(path):
libs = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment