]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf.c
Correct ELF reloc size sanity check
authorAlan Modra <amodra@gmail.com>
Wed, 26 Oct 2022 06:43:12 +0000 (17:13 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 26 Oct 2022 06:57:45 +0000 (17:27 +1030)
commit5dcae8f603b9379ef1c5f59331987322fd4d2126
tree349aabe392eff8a546a0562e8dd115bfc9f7f082
parent4d664d5711b297ca6666f529e83bb624f587df77
Correct ELF reloc size sanity check

The external reloc size check was wrong.  Here asect is the code/data
section, not the reloc section.  So using this_hdr gave the size of
the code/data section.

* elf.c (_bfd_elf_get_reloc_upper_bound): Properly get
external size from reloc headers.
bfd/elf.c