HPPA64 linker segmentation faults
authorAlan Modra <amodra@gmail.com>
Mon, 27 May 2019 23:11:56 +0000 (08:41 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 28 May 2019 01:25:41 +0000 (10:55 +0930)
commit586338b839d3f65d22eb3baef41f7395974f1f11
treebfad34ec6b3a599675f821d82202dbf8a71cc56f
parenta7b34aba62ce347b4e64ca197a5c8b997e3b72df
HPPA64 linker segmentation faults

One of the ld tests produces:
failed with: <Segmentation fault>, no expected output
FAIL: Discarded dynamic relocation section

This patch cures the segv.  (The test still fails with ld producing
a really messed up output, DT_RELA at address 0!)

PR 24596
* elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
from bfd_link_info, not an output section owner.
(elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
(elf_hppa_final_link_relocate): Likewise.
bfd/ChangeLog
bfd/elf64-hppa.c