summaryrefslogtreecommitdiff
path: root/ld/ldemul.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-08-04 01:19:10 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-08-04 01:19:10 +0000
commit12f34d675b065faa04d393e71262bb05c0d3d477 (patch)
tree07fa4f00041c04dcaf73a98d153c8752383d3501 /ld/ldemul.c
parent1c812b6ea28736db13ac4720e1f10d48e5a30ddb (diff)
downloadbinutils-redhat-12f34d675b065faa04d393e71262bb05c0d3d477.tar.gz
bfd/
* elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to.. * linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here. * bfd-in.h (_bfd_fix_excluded_sec_syms): Rename. * bfd-in2.h: Regenerate. ld/ * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally. (finish_default): New function. * ldemul.h (finish_default): Declare. * emultempl/aix.em (gld*_before_allocation): Call before_allocation_default rather than strip_excluded_output_sections. (ld_*_emulation): Init finish field to finish_default. * emultempl/armcoff.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/generic.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/mmo.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vanilla.em: Likewise.
Diffstat (limited to 'ld/ldemul.c')
-rw-r--r--ld/ldemul.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ld/ldemul.c b/ld/ldemul.c
index fbe3e1dd56..5b4796a2d9 100644
--- a/ld/ldemul.c
+++ b/ld/ldemul.c
@@ -94,8 +94,7 @@ ldemul_set_output_arch (void)
void
ldemul_finish (void)
{
- if (ld_emulation->finish)
- ld_emulation->finish ();
+ ld_emulation->finish ();
}
void
@@ -228,6 +227,13 @@ do_assignments_default (void)
}
void
+finish_default (void)
+{
+ if (!link_info.relocatable)
+ _bfd_fix_excluded_sec_syms (output_bfd, &link_info);
+}
+
+void
set_output_arch_default (void)
{
/* Set the output architecture and machine if possible. */