]> git.ipfire.org Git - thirdparty/elfutils.git/commit
nm: Explicitly print weak 'V' or 'T' and common 'C' symbols.
authorMark Wielaard <mark@klomp.org>
Sat, 6 Jun 2020 23:02:52 +0000 (01:02 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 6 Jun 2020 23:02:52 +0000 (01:02 +0200)
commit76ff94dce7ee8dd88c502bc0bbfc8dea15efea5b
treefe02b805e3a9e7b65e4fb66ce4932b0235fb7cdf
parent39f22a7687dd190a3e6d26a728ff2ed5129aba5a
nm: Explicitly print weak 'V' or 'T' and common 'C' symbols.

Mimic binutils nm for bsd and posix formats which uses 'V' for weak
symbols, 'C' for common symbols and 'T' for weak functions. Also fix
some formatting issues. Don't print undefined addresses as zeros, but
make sure there is enough padding instead. Just print UNIQUE for
GNU_UNIQUE to make it fit 6 chars, like other binding names in sysv
format.

https://sourceware.org/bugzilla/show_bug.cgi?id=25227

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/nm.c
tests/ChangeLog
tests/Makefile.am
tests/run-nm-syms.sh [new file with mode: 0755]
tests/testfilesyms32.bz2 [new file with mode: 0644]
tests/testfilesyms64.bz2 [new file with mode: 0644]