Always pass a valid section header offset to elf_parse_notes
authorGary Benson <gbenson@redhat.com>
Tue, 29 Nov 2016 11:14:02 +0000 (11:14 +0000)
committerGary Benson <gbenson@redhat.com>
Fri, 2 Dec 2016 11:34:58 +0000 (11:34 +0000)
commit08698b7b46c9c932530dcbcd7e851d27a7d2c503
tree077daf1cfc7007e823f358c3856aae8f6cbf172d
parentd5451cd45325d12b2cc3d10ffe67f09b0e26b967
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.
bfd/ChangeLog
bfd/elf.c
This page took 0.035916 seconds and 4 git commands to generate.