From c31f3915820b6d9f0feefb6488493617599129b4 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 18 May 2011 16:35:00 +0000 Subject: PR binutils/12753 * nm.c (filter_symbols): Treat unique symbols as global symbols. * doc/binutils.texi (nm): Mention that some lowercase letters actually indicate global symbols. * lib/utils-lib.exp (run_dump_test): Allow nm as a program. * binutils-all/nm.exp: Test running "nm -g" on an object file containing a unique symbol. --- binutils/nm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'binutils/nm.c') diff --git a/binutils/nm.c b/binutils/nm.c index 2c099aacf2..2fc13b4c31 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -436,6 +436,8 @@ filter_symbols (bfd *abfd, bfd_boolean is_dynamic, void *minisyms, else if (external_only) keep = ((sym->flags & BSF_GLOBAL) != 0 || (sym->flags & BSF_WEAK) != 0 + /* PR binutls/12753: Unique symbols are global too. */ + || (sym->flags & BSF_GNU_UNIQUE) != 0 || bfd_is_und_section (sym->section) || bfd_is_com_section (sym->section)); else -- cgit v1.2.1