From 1e035701d67ed8a8bc72ec9e393f2d984090a60c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 4 Aug 2005 01:19:10 +0000 Subject: 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. --- ld/emultempl/linux.em | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ld/emultempl/linux.em') diff --git a/ld/emultempl/linux.em b/ld/emultempl/linux.em index 277d1e9..071af80 100644 --- a/ld/emultempl/linux.em +++ b/ld/emultempl/linux.em @@ -122,7 +122,7 @@ gld${EMULATION_NAME}_before_allocation (void) if (! bfd_${EMULATION_NAME}_size_dynamic_sections (output_bfd, &link_info)) einfo ("%P%F: failed to set dynamic section sizes: %E\n"); - strip_excluded_output_sections (); + before_allocation_default (); } static char * @@ -193,7 +193,7 @@ struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation = gld${EMULATION_NAME}_get_script, "${EMULATION_NAME}", "${OUTPUT_FORMAT}", - NULL, /* finish */ + finish_default, gld${EMULATION_NAME}_create_output_section_statements, gld${EMULATION_NAME}_open_dynamic_archive, NULL, /* place orphan */ -- cgit v1.1