[HPPA] Attach linker created dynamic sections to stub bfd
authorAlan Modra <amodra@gmail.com>
Wed, 11 May 2016 13:21:14 +0000 (22:51 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 11 May 2016 13:21:14 +0000 (22:51 +0930)
commita464198b013940745d43cff029330b9e7dda71c2
treee2e4185ebd4621db9467b5b2205c2821743c017f
parent3bd43ebcb6025a8a43f119238f490e2e238697a2
[HPPA] Attach linker created dynamic sections to stub bfd

bfd/
* elf32-hppa.c (elf32_hppa_init_stub_bfd): New function.
(elf32_hppa_check_relocs): Don't set dynobj.
(elf32_hppa_size_stubs): Test !SEC_LINKER_CREATED for stub sections.
(elf32_hppa_build_stubs): Likewise.
* elf32-hppa.h (elf32_hppa_init_stub_bfd): Declare.
ld/
* emultempl/hppaelf.em (hppaelf_create_output_section_statements):
Call elf32_hppa_init_stub_bfd.
bfd/ChangeLog
bfd/elf32-hppa.c
bfd/elf32-hppa.h
ld/ChangeLog
ld/emultempl/hppaelf.em