mach-o section question
mach-o section question
- Subject: mach-o section question
- From: Army Research Lab <email@hidden>
- Date: Wed, 16 Apr 2008 10:36:40 -0400
- Thread-topic: mach-o section question
Hi all, I'm working on writing a command line scraper for the output of the
'nm' command written in Python. For right now, the only things I'm
interested in are the lines output by the command
'nm -gmf foo.o | c++filt -_'. This applies to anything that nm can parse,
not just .o files. Although it isn't 100% necessary for what I'm doing, I
am curious as to what the various sections in the mach-o binaries are. As a
brief, but incomplete list, here is what I've seen so far:
__DATA,__common -- Uninitialized imported global symbols
__DATA,__data -- Initialized mutable variables
__TEXT,__cstring -- Constant C-strings
__TEXT,__eh_frame -- ???
__TEXT,__literal8 -- ???
__TEXT,__text -- Executable machine code
__TEXT,__textcoal_nt -- ???
absolute -- absolute addresses - start up code?
common -- ???
Can anyone fill me in on what those unknown sections are? I briefly looked
at the Mac OS X ABI Mach-O File Format Reference
(http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachORun
time/Reference/reference.html), which is where I got the few definitions I
have above, but I'd like to know more.
Thanks,
Cem Karan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden