How can I dump all the global variables and the address offsets in my executable?
This is on os x, app developed with xcode compiled with gcc.
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If Compiled to Mach-O
Either use
otoolor thecctools.If Compiled to ELF
You should be able to do this with
objdumpand/orreadelf.I don’t have a *nix system at hand here, but
objdump -s -j .datashould be getting you rather close enough.