mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
Simplify global symbol handling
* nm.c (filter_symbols): Simplify global symbol handling.
This commit is contained in:
parent
a8c887ddc5
commit
6a1b08f5a6
@ -1,3 +1,7 @@
|
||||
2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* nm.c (filter_symbols): Simplify global symbol handling.
|
||||
|
||||
2012-06-29 Francois Gouget <fgouget@codeweavers.com>
|
||||
|
||||
PR binutils/14302
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user