]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf32-hppa.c
PR23207, hppa ld SIGSEGVs on invalid object files
authorAlan Modra <amodra@gmail.com>
Tue, 22 May 2018 09:04:18 +0000 (18:34 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 22 May 2018 10:07:06 +0000 (19:37 +0930)
commit215f527155ea776fff3f2f836d5da1e300e8c370
treec4258ef6d72973da9348b87f3c371eee4b6d0134
parent7455c018e45766ab7193cbd45f98f781e0dc7d84
PR23207, hppa ld SIGSEGVs on invalid object files

The last patch was enough to cure the testcase, but not the original
object file.  This patch does the same for hppa as is done for ppc64,
simply test for the section belonging to a group.  I've also
restricted stubs to load, alloc, code sections.

PR 23207
* elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
is NULL.
(elf32_hppa_size_stubs): Only create stubs for load, alloc, code
sections.
(final_link_relocate): Revert last change.
bfd/ChangeLog
bfd/elf32-hppa.c