From f5202354c3e705adb67ad73518bcdcdbe2f13816 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 15 Dec 1994 01:23:40 +0000 Subject: [PATCH] * elfcode.h (elf_map_symbols): Only use section symbols whose value is the start of the section. --- bfd/ChangeLog | 5 +++++ bfd/elfcode.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1a0e14bff65..ed71918b575 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Wed Dec 14 20:21:58 1994 Ian Lance Taylor + + * 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 * cpu-z8k.c (arch_info_struct): Make z8002 the default diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 717206d5d2e..e59402eaf98 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; -- 2.30.2