]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
nm: don't try to print line numbers for symbols without names
authorAlan Modra <amodra@gmail.com>
Tue, 1 Oct 2024 23:32:16 +0000 (09:02 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 3 Oct 2024 03:01:45 +0000 (12:31 +0930)
commitd2ea1a941173223907ef8a91d674af3417ba9dbc
treeb6430629ea4fc53d618b5cd0acbf9da03d394201
parent68bbe118337939aa0b52e007a7415c8a157579a1
nm: don't try to print line numbers for symbols without names

It doesn't make much sense trying to print line numbers for what are
usually broken symbols, and there is a possibility of a segfault if
we pass strcmp a NULL.
binutils/nm.c