* 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 1a0e14bff65dd271ca426a7e751a5d777a41cc3f..ed71918b575baf7945ab238c54b106c5c6fc8910 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 717206d5d2eaafa9e81cdbeec5c6c1e13df9f2b0..e59402eaf980feca1bcdd0acd7f309c5568e228a 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;