summaryrefslogtreecommitdiff
path: root/ld/ldemul.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-07-15 12:19:15 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-07-15 12:19:15 +0000
commitfde0a363c3808536e48eb7afeb9193ea2705b9b3 (patch)
treef5e138545fbba3a13d1ffc45a7f2bced4d1a71d6 /ld/ldemul.c
parent6dbaacf1109bee562003db5b38b662d146505194 (diff)
downloadbinutils-redhat-fde0a363c3808536e48eb7afeb9193ea2705b9b3.tar.gz
* ldemul.c (ldemul_do_assignments): New function.
(do_assignments_default): New function. * ldemul.h (ldemul_do_assignments): Declare. (do_assignments_default): Declare. (struct ld_emulation_xfer_struct): Add do_assignments. * ldlang.c (lang_do_assignments) Call ldemul_do_assignments. * emultempl/aix.em (ld_*_emulation): Init do_assignments field. * emultempl/armcoff.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/generic.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vanilla.em: Likewise. * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms. (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
Diffstat (limited to 'ld/ldemul.c')
-rw-r--r--ld/ldemul.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/ldemul.c b/ld/ldemul.c
index 8e6669dce2..fbe3e1dd56 100644
--- a/ld/ldemul.c
+++ b/ld/ldemul.c
@@ -80,6 +80,12 @@ ldemul_before_allocation (void)
}
void
+ldemul_do_assignments (void)
+{
+ ld_emulation->do_assignments ();
+}
+
+void
ldemul_set_output_arch (void)
{
ld_emulation->set_output_arch ();
@@ -217,6 +223,11 @@ before_allocation_default (void)
}
void
+do_assignments_default (void)
+{
+}
+
+void
set_output_arch_default (void)
{
/* Set the output architecture and machine if possible. */