Mercurial > lcfOS
diff python/readelf.py @ 126:bbf4c9b138d4
Changes to elf reading
author | Windel Bouwman |
---|---|
date | Sun, 13 Jan 2013 12:14:27 +0100 |
parents | db8aafe00d27 |
children |
line wrap: on
line diff
--- a/python/readelf.py Sun Jan 13 10:42:03 2013 +0100 +++ b/python/readelf.py Sun Jan 13 12:14:27 2013 +0100 @@ -13,5 +13,8 @@ if args.list_program_headers: print('program headers') - ef.printProgramHeaders() + phs = ef.parsePrograms() + print(phs) + for ph in phs: + print('type=0x{0:X} vaddr=0x{1:X} filesz=0x{2:X}'.format(ph.p_type, ph.p_vaddr, ph.p_filesz))