diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cef1c4b6aba..d061e66a260 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2016-12-02 Gary Benson + + * elf.c (_bfd_elf_make_section_from_shdr): Pass offset to + elf_parse_notes. + 2016-12-02 Josh Conner * configure.tgt: Add support for fuchsia (OS). diff --git a/bfd/elf.c b/bfd/elf.c index 3d1a28aa7ee..98be1db6d78 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -1062,7 +1062,7 @@ _bfd_elf_make_section_from_shdr (bfd *abfd, if (!bfd_malloc_and_get_section (abfd, newsect, &contents)) return FALSE; - elf_parse_notes (abfd, (char *) contents, hdr->sh_size, -1); + elf_parse_notes (abfd, (char *) contents, hdr->sh_size, hdr->sh_offset); free (contents); }