• 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
Re: Missing(?) symbols in 'nm' output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing(?) symbols in 'nm' output


  • Subject: Re: Missing(?) symbols in 'nm' output
  • From: Wim Lewis <email@hidden>
  • Date: Tue, 31 Jan 2012 10:10:50 -0800

On 29 Jan 2012, at 12:56 PM, Nick Blievers wrote:
> If you use otool -lh you can see the address ranges of each section, and using the start address to the end of the __text section should give you a size for that last symbol. The 's' symbols probably live in the __const section. This is obviously going to make your script a fair bit more complex... but maybe you are better off using 'otool -vt' to dump out the text section, and parse that? Might be easier.


I don't know if it's feasible in Jens' case, but parsing the DWARF debug information should be much more reliable. Unless you're doing function partitioning (-freorder-blocks-and-partition, does clang even support that?), you can just look at each TAG_subprogram block emitted by dwarfdump and find its AT_name, AT_low_pc, and AT_high_pc attributes.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Missing(?) symbols in 'nm' output (From: Jens Alfke <email@hidden>)
 >Re: Missing(?) symbols in 'nm' output (From: Nick Blievers <email@hidden>)

  • Prev by Date: Re: Problems converting OSX Project to ARC
  • Previous by thread: Re: Missing(?) symbols in 'nm' output
  • Next by thread: Adequate substitutes for Xcode 3's script menu?
  • Index(es):
    • Date
    • Thread