site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: Acifz0hLhthtfAvCEd2kCwAdT0T19A== Thread-topic: mach-o section question User-agent: Microsoft-Entourage/11.4.0.080122 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Army Research Lab