Fix ia64-linux binutils readelf -s testsuite failure.
* syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
This commit is contained in:
parent
7b78baae9b
commit
a78f18dc3a
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue