Fix ia64-linux binutils readelf -s testsuite failure.
authorJim Wilson <wilson@tuliptree.org>
Thu, 5 Jul 2001 18:27:55 +0000 (18:27 +0000)
committerJim Wilson <wilson@tuliptree.org>
Thu, 5 Jul 2001 18:27:55 +0000 (18:27 +0000)
* syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.

bfd/ChangeLog
bfd/syms.c

index ab720b10c05f5e449ab8185a4afc7a62eda29524..ec94ce98e2e788437363d5103ee4996138251693 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-05  Jim Wilson  <wilson@redhat.com>
+
+       * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
+
 2001-07-05  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * peicode.h (coff_swap_scnhdr_in): For sections containing
index 311806e1f6b68b923d80d030345ce7c6d8053f9b..d8489188576dd5dd52215ff544408c06f89e7bb8 100644 (file)
@@ -353,7 +353,10 @@ bfd_is_local_label (abfd, sym)
      bfd *abfd;
      asymbol *sym;
 {
-  if ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0)
+  /* 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)
     return false;
   if (sym->name == NULL)
     return false;