Re: Missing(?) symbols in 'nm' output
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