aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-12-15 01:23:40 +0000
committerIan Lance Taylor <ian@airs.com>1994-12-15 01:23:40 +0000
commitf5202354c3e705adb67ad73518bcdcdbe2f13816 (patch)
tree9b0be23c902b44aab5fd51134d611d7115efc2d4 /bfd
parentd0bfd8ec2bbcb85710e59b8ecad4a619809b2caf (diff)
downloadgdb-f5202354c3e705adb67ad73518bcdcdbe2f13816.zip
gdb-f5202354c3e705adb67ad73518bcdcdbe2f13816.tar.gz
gdb-f5202354c3e705adb67ad73518bcdcdbe2f13816.tar.bz2
* elfcode.h (elf_map_symbols): Only use section symbols whose
value is the start of the section.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfcode.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1a0e14b..ed71918 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec 14 20:21:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
+
+ * elfcode.h (elf_map_symbols): Only use section symbols whose
+ value is the start of the section.
+
Tue Dec 13 13:31:06 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* cpu-z8k.c (arch_info_struct): Make z8002 the default
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 717206d..e59402e 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -1497,7 +1497,8 @@ elf_map_symbols (abfd)
for (idx = 0; idx < symcount; idx++)
{
- if ((syms[idx]->flags & BSF_SECTION_SYM) != 0)
+ if ((syms[idx]->flags & BSF_SECTION_SYM) != 0
+ && syms[idx]->value == asect->vma)
{
asection *sec;