This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
using link map to go from address to symbol
- From: "Michael Winslow" <Michael dot Winslow at novariant dot com>
- To: <binutils at sourceware dot org>
- Date: Mon, 24 Aug 2009 18:50:23 -0700
- Subject: using link map to go from address to symbol
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, assuming they haven't been optimized away. So far, I've been
manually searching through the link map to try to figure out what the
address corresponds to in my source. But I'm wondering if there isn't
an easier or more automated way of going backwards with that link map.
Is there some tool similar to addr2line that will work on maps instead
of executables?
Thanks,
Michael