• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
mach-o section question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: mach-o section question
      • From: "stephen joseph butler" <email@hidden>
    • Re: mach-o section question
      • From: David Elliott <email@hidden>
    • Re: mach-o section question
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Re: enabling #ident in Apple gcc
  • Next by Date: Re: mach-o section question
  • Previous by thread: Re: enabling #ident in Apple gcc
  • Next by thread: Re: mach-o section question
  • Index(es):
    • Date
    • Thread