diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-12-15 01:23:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-12-15 01:23:40 +0000 |
commit | f5202354c3e705adb67ad73518bcdcdbe2f13816 (patch) | |
tree | 9b0be23c902b44aab5fd51134d611d7115efc2d4 /bfd/elfcode.h | |
parent | d0bfd8ec2bbcb85710e59b8ecad4a619809b2caf (diff) | |
download | gdb-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/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |