[addr2line] Printing symbol names

Alan Modra amodra@gmail.com
Mon Jun 24 00:27:28 GMT 2024


On Sun, Jun 23, 2024 at 03:49:07PM +0200, Jiří Wolker wrote:
> I can't find a way to print symbol names for non-functions using
> ‘addr2line’. It is possible to print function names, but this prints
> just ‘??’ for symbols in data sections.

Works for me.
$ binutils/addr2line --exe=gas/as.o --section=.data 8
/home/alan/src/binutils-gdb/gas/as.c:84
$ binutils/addr2line --exe=gas/as-new 0xa423f8
/home/alan/src/binutils-gdb/gas/as.c:84

-- 
Alan Modra


More information about the Binutils mailing list