aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-10-08 05:53:59 +0000
committerAlan Modra <amodra@gmail.com>2004-10-08 05:53:59 +0000
commit864274b0e90535a7228860f234b51d465c16d9bc (patch)
treecdf534185c2910fca1b616b9903656033774de87 /bfd
parentaf2f09fb310a00fe32248525e504e2348c6dd116 (diff)
downloadgdb-864274b0e90535a7228860f234b51d465c16d9bc.zip
gdb-864274b0e90535a7228860f234b51d465c16d9bc.tar.gz
gdb-864274b0e90535a7228860f234b51d465c16d9bc.tar.bz2
* syms.c (bfd_is_local_label): Return false for file symbols.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/syms.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index df81821..fcaa499 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-08 Alan Modra <amodra@bigpond.net.au>
+
+ * syms.c (bfd_is_local_label): Return false for file symbols.
+
2004-10-07 Bob Wilson <bob.wilson@acm.org>
* elf32-xtensa.c (elf32xtensa_size_opt): New global variable.
diff --git a/bfd/syms.c b/bfd/syms.c
index ca4584c..e78f5ec 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -355,7 +355,7 @@ bfd_is_local_label (bfd *abfd, asymbol *sym)
/* The BSF_SECTION_SYM check is needed for IA-64, where every label that
starts with '.' is local. This would accidentally catch section names
if we didn't reject them here. */
- if ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_SECTION_SYM)) != 0)
+ if ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_FILE | BSF_SECTION_SYM)) != 0)
return FALSE;
if (sym->name == NULL)
return FALSE;