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 | a78f18dc3ab646133778c41d3a3257d0d617a448 (patch) | |
tree | 35c8fc0c88362613ff8384e37eb2da2e0e01cd9c /bfd/syms.c | |
parent | 7b78baae9b0beeee74aa508c150c35b4f9f35982 (diff) | |
download | gdb-a78f18dc3ab646133778c41d3a3257d0d617a448.zip gdb-a78f18dc3ab646133778c41d3a3257d0d617a448.tar.gz gdb-a78f18dc3ab646133778c41d3a3257d0d617a448.tar.bz2 |
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
@@ -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; |