diff options
author | Alan Modra <amodra@gmail.com> | 2016-05-11 22:51:14 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-05-11 22:51:14 +0930 |
commit | a464198b013940745d43cff029330b9e7dda71c2 (patch) | |
tree | e2e4185ebd4621db9467b5b2205c2821743c017f /ld | |
parent | 3bd43ebcb6025a8a43f119238f490e2e238697a2 (diff) | |
download | gdb-a464198b013940745d43cff029330b9e7dda71c2.zip gdb-a464198b013940745d43cff029330b9e7dda71c2.tar.gz gdb-a464198b013940745d43cff029330b9e7dda71c2.tar.bz2 |
[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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/emultempl/hppaelf.em | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 734c4b5..5c609e2 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,10 @@ 2016-05-11 Alan Modra <amodra@gmail.com> + * emultempl/hppaelf.em (hppaelf_create_output_section_statements): + Call elf32_hppa_init_stub_bfd. + +2016-05-11 Alan Modra <amodra@gmail.com> + PR 20060 * testsuite/ld-powerpc/powerpc.exp: Run new tests. * testsuite/ld-powerpc/tlsdll.s: New. diff --git a/ld/emultempl/hppaelf.em b/ld/emultempl/hppaelf.em index a1d2e80..965f986 100644 --- a/ld/emultempl/hppaelf.em +++ b/ld/emultempl/hppaelf.em @@ -88,6 +88,7 @@ hppaelf_create_output_section_statements (void) stub_file->the_bfd->flags |= BFD_LINKER_CREATED; ldlang_add_file (stub_file); + elf32_hppa_init_stub_bfd (stub_file->the_bfd, &link_info); } |