aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-04-22 03:11:40 +0000
committerAlan Modra <amodra@gmail.com>2013-04-22 03:11:40 +0000
commitbfeb4a285ab62875ca5dafedc0c51d06493a1952 (patch)
tree6de3fdb6a0fed144ab5b872e413bb944c8c36e38 /ld/emultempl
parent1f81bca1482d670ba4836d7d635f0faba7028fcc (diff)
downloadgdb-bfeb4a285ab62875ca5dafedc0c51d06493a1952.zip
gdb-bfeb4a285ab62875ca5dafedc0c51d06493a1952.tar.gz
gdb-bfeb4a285ab62875ca5dafedc0c51d06493a1952.tar.bz2
bfd/
* elf64-ppc.c (ppc64_elf_check_relocs): Don't call create_linkage_sections here.. (ppc64_elf_init_stub_bfd): ..do so here. Return status. (create_linkage_sections): Move earlier in file. (ppc64_elf_setup_section_lists): Remove now useless htab->brlt test. * elf64-ppc.h (ppc64_elf_init_stub_bfd): Update proto. ld/ * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check return from ppc64_elf_init_stub_bfd. ld/testsuite/ * ld-powerpc/tlsexe.d: Adjust. * ld-powerpc/tlsexe.r: Adjust. * ld-powerpc/tlsexetoc.d: Adjust. * ld-powerpc/tlsexetoc.r: Adjust. * ld-powerpc/tlsso.d: Adjust. * ld-powerpc/tlsso.r: Adjust. * ld-powerpc/tlstocso.d: Adjust. * ld-powerpc/tlstocso.r: Adjust.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/ppc64elf.em3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em
index d578f7f..43f9b61 100644
--- a/ld/emultempl/ppc64elf.em
+++ b/ld/emultempl/ppc64elf.em
@@ -107,7 +107,8 @@ ppc_create_output_section_statements (void)
stub_file->the_bfd->flags |= BFD_LINKER_CREATED;
ldlang_add_file (stub_file);
- ppc64_elf_init_stub_bfd (stub_file->the_bfd, &link_info);
+ if (!ppc64_elf_init_stub_bfd (stub_file->the_bfd, &link_info))
+ einfo ("%F%P: can not init BFD: %E\n");
}
/* Move the input section statement at *U which happens to be on LIST