* elfcode.h (elf_map_symbols): Only use section symbols whose
authorIan Lance Taylor <ian@airs.com>
Thu, 15 Dec 1994 01:23:40 +0000 (01:23 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 15 Dec 1994 01:23:40 +0000 (01:23 +0000)
value is the start of the section.

bfd/ChangeLog
bfd/elfcode.h

index 1a0e14b..ed71918 100644 (file)
@@ -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
index 717206d..e59402e 100644 (file)
@@ -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;