diff options
author | Jim Wilson <wilson@tuliptree.org> | 2001-07-05 18:27:55 +0000 |
---|---|---|
committer | Jim Wilson <wilson@tuliptree.org> | 2001-07-05 18:27:55 +0000 |
commit | 750221bf87ef76282942c8b1e45ede82eba6cd8b (patch) | |
tree | 2316b161d897be6271aa9705232b8fa00e9a30f3 /bfd/syms.c | |
parent | 4e606e6fd6b08884fbf28da68403cc9f5e6f2e87 (diff) | |
download | binutils-redhat-750221bf87ef76282942c8b1e45ede82eba6cd8b.tar.gz |
Fix ia64-linux binutils readelf -s testsuite failure.
* syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
Diffstat (limited to 'bfd/syms.c')
-rw-r--r-- | bfd/syms.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/syms.c b/bfd/syms.c index 311806e1f6..d848918857 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; |