aboutsummaryrefslogtreecommitdiff
path: root/binutils/nm.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-06-29 16:55:15 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-06-29 16:55:15 +0000
commit6a1b08f5a6670f386c95a21c57068ae1b083e573 (patch)
treec648cfd0d7812314b8a4cf294a6cf6ee74e143d4 /binutils/nm.c
parenta8c887ddc54248ad44182cd273f5fd4b25767c10 (diff)
downloadgdb-6a1b08f5a6670f386c95a21c57068ae1b083e573.zip
gdb-6a1b08f5a6670f386c95a21c57068ae1b083e573.tar.gz
gdb-6a1b08f5a6670f386c95a21c57068ae1b083e573.tar.bz2
Simplify global symbol handling
* nm.c (filter_symbols): Simplify global symbol handling.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r--binutils/nm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/nm.c b/binutils/nm.c
index 27019e19..ad38e27 100644
--- a/binutils/nm.c
+++ b/binutils/nm.c
@@ -435,10 +435,10 @@ filter_symbols (bfd *abfd, bfd_boolean is_dynamic, void *minisyms,
if (undefined_only)
keep = bfd_is_und_section (sym->section);
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
+ /* PR binutls/12753: Unique symbols are global too. */
+ keep = ((sym->flags & (BSF_GLOBAL
+ | BSF_WEAK
+ | BSF_GNU_UNIQUE)) != 0
|| bfd_is_und_section (sym->section)
|| bfd_is_com_section (sym->section));
else