Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MACHO: Section.virtual_address is always zero #92

Closed
rammy22 opened this issue Sep 8, 2017 · 0 comments
Closed

MACHO: Section.virtual_address is always zero #92

rammy22 opened this issue Sep 8, 2017 · 0 comments

Comments

@rammy22
Copy link

rammy22 commented Sep 8, 2017

Tested this on multiple MachO binaries. Example below:

import pprint
>>> pprint.pprint([('%08X'%s.file_offset, '%08X'%s.size, '%08X'%s.virtual_address)  for s in binary.segments])
[('00000000', '00000048', '00000000'),
 ('00000000', '00000408', '100000000'),
 ('0009F000', '00000728', '10009F000'),
 ('000AC000', '00000048', '1000AD000')]
>>> pprint.pprint([('%08X'%s.offset, '%08X'%s.size, '%08X'%s.virtual_address)  for s in binary.sections])
[('00001CE0', '0006C9EC', '00000000'),
 ('0006E6CC', '0000099C', '00000000'),
 ('0006F068', '00001000', '00000000'),
 ('00070070', '00000820', '00000000'),
 ('00070890', '00005AE7', '00000000'),
 ('00076377', '0000196B', '00000000'),
 ('00077CE2', '00000287', '00000000'),
 ('00077F69', '00001998', '00000000'),
 ('00079904', '00011848', '00000000'),
 ('0008B14C', '00000004', '00000000'),
 ('0008B150', '00002230', '00000000'),
 ('0008D380', '00011C78', '00000000'),
 ('0009F000', '00000028', '00000000'),
 ('0009F028', '00000010', '00000000'),
 ('0009F038', '00000298', '00000000'),
 ('0009F2D0', '00000CD0', '00000000'),
 ('0009FFA0', '00000038', '00000000'),
 ('0009FFE0', '00000960', '00000000'),
 ('000A0940', '000002A0', '00000000'),
 ('000A0BE0', '000000A0', '00000000'),
 ('000A0C80', '00000008', '00000000'),
 ('000A0C88', '00000070', '00000000'),
 ('000A0CF8', '00000060', '00000000'),
 ('000A0D58', '00000008', '00000000'),
 ('000A0D60', '00007540', '00000000'),
 ('000A82A0', '00001758', '00000000'),
 ('000A99F8', '00000010', '00000000'),
 ('000A9A08', '00000270', '00000000'),
 ('000A9C78', '00000048', '00000000'),
 ('000A9CC0', '000001E8', '00000000'),
 ('000A9EA8', '00000690', '00000000'),
 ('000AA540', '00000EA8', '00000000'),
 ('00000000', '000000B8', '00000000'),
 ('00000000', '00000DF0', '00000000')]
romainthomas added a commit that referenced this issue Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant