* elfcode.h (elf_map_symbols): Only use section symbols whose

value is the start of the section.
This commit is contained in:
Ian Lance Taylor 1994-12-15 01:23:40 +00:00
parent d0bfd8ec2b
commit f5202354c3
2 changed files with 7 additions and 1 deletions

View 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

View 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;