aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/hppaelf.em
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-03-21 09:39:54 +0000
committerAlan Modra <amodra@gmail.com>2005-03-21 09:39:54 +0000
commitb1ab97771ea3ce4842da7afd06aec65ff3fd0620 (patch)
tree4bc24c7dacd22bf9ceabc4b60cffeb08fe39f5e8 /ld/emultempl/hppaelf.em
parentbd17c2c398a0ba54189fe84d8a73a3f83310001d (diff)
downloadfsf-binutils-gdb-b1ab97771ea3ce4842da7afd06aec65ff3fd0620.zip
fsf-binutils-gdb-b1ab97771ea3ce4842da7afd06aec65ff3fd0620.tar.gz
fsf-binutils-gdb-b1ab97771ea3ce4842da7afd06aec65ff3fd0620.tar.bz2
ld/
* emultempl/ppc64elf.em (ppc_finish): Rename from gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish. (LDEMUL_FINISH): Update. * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise. * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise. ld/testsuite/ * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-powerpc/tlsso.r: Update. * ld-powerpc/tlstocso.r: Update.
Diffstat (limited to 'ld/emultempl/hppaelf.em')
-rw-r--r--ld/emultempl/hppaelf.em11
1 files changed, 8 insertions, 3 deletions
diff --git a/ld/emultempl/hppaelf.em b/ld/emultempl/hppaelf.em
index 01ca7e1..d8276d2 100644
--- a/ld/emultempl/hppaelf.em
+++ b/ld/emultempl/hppaelf.em
@@ -256,7 +256,7 @@ build_section_lists (lang_statement_union_type *statement)
to build linker stubs. */
static void
-gld${EMULATION_NAME}_finish (void)
+hppaelf_finish (void)
{
/* bfd_elf_discard_info just plays with debugging sections,
ie. doesn't affect any code, so we can delay resizing the
@@ -312,9 +312,14 @@ gld${EMULATION_NAME}_finish (void)
if (stub_file != NULL && stub_file->the_bfd->sections != NULL)
{
if (! elf32_hppa_build_stubs (&link_info))
- einfo ("%X%P: can not build stubs: %E\n");
+ {
+ einfo ("%X%P: can not build stubs: %E\n");
+ return;
+ }
}
}
+
+ gld${EMULATION_NAME}_finish ();
}
@@ -387,5 +392,5 @@ PARSE_AND_LIST_ARGS_CASES='
# Put these extra hppaelf routines in ld_${EMULATION_NAME}_emulation
#
LDEMUL_AFTER_PARSE=hppaelf_after_parse
-LDEMUL_FINISH=gld${EMULATION_NAME}_finish
+LDEMUL_FINISH=hppaelf_finish
LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS=hppaelf_create_output_section_statements