This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: using link map to go from address to symbol
Nick Clifton wrote:
> Hi Michael,
>
>> I'm looking to go from addresses to symbols. In the past, I've used
>> addr2line to go from program addresses back to their corresponding
>> location in source. But I'm in a circumstance now where I have a
>> stripped executable with a (pretty large - ~30MB) link map. I'd like to
>> be able to use the link map to at least get to function or routine
>> names,
>
> Why ? What is wrong with continuing to use the addr2line tool ? After
> all this is exactly what it is designed for.
If it's just that the executable is stripped because of the space
requirements of the debug info, maybe the answer is to use objcopy's
--only-keep-debug and --add-gnu-debuglink options to create a separated debug
info file.
cheers,
DaveK