summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-07-05 20:35:38 +0000
committerobrien <obrien@FreeBSD.org>2002-07-05 20:35:38 +0000
commit69e1a1e0d41099d0485eddacd2997659a21a97f8 (patch)
tree259e54d3366e72199e0b998bf9698f3fd2a56b7b /contrib
parenta497fd590aa0c8c1ae7bf62150fe73c8aaae9816 (diff)
downloadFreeBSD-src-69e1a1e0d41099d0485eddacd2997659a21a97f8.zip
FreeBSD-src-69e1a1e0d41099d0485eddacd2997659a21a97f8.tar.gz
We use the stock version of this file as in rev 1.4.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/binutils/binutils/nm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/binutils/binutils/nm.c b/contrib/binutils/binutils/nm.c
index 67698c8..b8c06a7 100644
--- a/contrib/binutils/binutils/nm.c
+++ b/contrib/binutils/binutils/nm.c
@@ -1293,7 +1293,8 @@ print_symbol (abfd, sym, archive_bfd)
bfd_asymbol_name (*r->sym_ptr_ptr)) == 0
&& bfd_find_nearest_line (abfd, secs[i], syms,
r->address, &filename,
- &functionname, &lineno))
+ &functionname, &lineno)
+ && filename != NULL)
{
/* We only print the first one we find. */
printf ("\t%s:%u", filename, lineno);
OpenPOWER on IntegriCloud