From: Jim Wilson Date: Thu, 5 Jul 2001 18:27:55 +0000 (+0000) Subject: Fix ia64-linux binutils readelf -s testsuite failure. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a78f18dc3ab646133778c41d3a3257d0d617a448;p=binutils-gdb.git Fix ia64-linux binutils readelf -s testsuite failure. * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ab720b10c05..ec94ce98e2e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2001-07-05 Jim Wilson + + * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM. + 2001-07-05 Nick Clifton * peicode.h (coff_swap_scnhdr_in): For sections containing diff --git a/bfd/syms.c b/bfd/syms.c index 311806e1f6b..d8489188576 100644 --- a/bfd/syms.c +++ b/bfd/syms.c @@ -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;