From a464198b013940745d43cff029330b9e7dda71c2 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 11 May 2016 22:51:14 +0930 Subject: [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. --- ld/emultempl/hppaelf.em | 1 + 1 file changed, 1 insertion(+) (limited to 'ld/emultempl/hppaelf.em') 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); } -- cgit v1.1