diff options
author | Gary Benson <gbenson@redhat.com> | 2016-11-29 11:14:02 +0000 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2016-12-02 11:34:58 +0000 |
commit | 08698b7b46c9c932530dcbcd7e851d27a7d2c503 (patch) | |
tree | 077daf1cfc7007e823f358c3856aae8f6cbf172d /ld | |
parent | d5451cd45325d12b2cc3d10ffe67f09b0e26b967 (diff) | |
download | gdb-08698b7b46c9c932530dcbcd7e851d27a7d2c503.zip gdb-08698b7b46c9c932530dcbcd7e851d27a7d2c503.tar.gz gdb-08698b7b46c9c932530dcbcd7e851d27a7d2c503.tar.bz2 |
Always pass a valid section header offset to elf_parse_notes
_bfd_elf_make_section_from_shdr calls elf_parse_notes with an offset
of -1. This argument is used to calculate Elf_Internal_Note.descpos,
which ends up set to a positive but meaningless value. This commit
updates _bfd_elf_make_section_from_shdr to pass the correct offset to
elf_parse_notes, making Elf_Internal_Note.descpos correct in all cases.
bfd/ChangeLog:
* elf.c (_bfd_elf_make_section_from_shdr): Pass offset to
elf_parse_notes.
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions