old-cross-binutils/ld/emultempl
Alan Modra 4a43e768f1 bfd/
* elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field.  Add
	dyn_lib_class field.  Rearrange for better packing.
	(elf_dt_soname): Delete.
	(elf_dyn_lib_class): Define.
	* elf.c (bfd_elf_set_dt_needed_name): Update comment.
	(bfd_elf_set_dt_needed_soname): Delete.
	(bfd_elf_set_dyn_lib_class): New function.
	* elflink.h (add_dt_needed_tag): New function.  Split out from..
	(elf_link_add_object_symbols): ..here.  Rename "name" to "soname".
	Use elf_dyn_lib_class to set dt_needed and add_needed.  Move fallback
	initialization of soname.
	(elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
	elf_dt_soname.
	* bfd-in.h (enum dynamic_lib_link_class): New.
	(bfd_elf_set_dt_needed_soname): Delete.
	(bfd_elf_set_dyn_lib_class): Declare.
	* bfd-in2.h: Regenerate.
ld/
	* ld.texinfo: Add --as-needed doco.
	* ldmain.c (as_needed): New global var.
	* ldmain.h (as_needed): Declare.
	* lexsup.c (option_values): Add OPTION_AS_NEEDED and
	OPTION_NO_AS_NEEDED.
	(ld_options): Likewise.
	(parse_args): Handle them.
	* ldlang.h (lang_input_statement_type): Add as_needed field.
	* ldlang.c (new_afile): Set p->as_needed.
	* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
	(gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
	(ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.

	* ldlang.c (open_input_bfds): Remove useless cast.
	(lang_do_assignments_1): Likewise.
	(lang_for_each_input_section): Delete.
2004-03-18 12:50:20 +00:00
..
aix.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
alphaelf.em * emultempl/aix.em: Convert to C90, remove unnecessary prototypes 2003-06-27 00:38:25 +00:00
armcoff.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
armelf.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
armelf_oabi.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
astring.sed
beos.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
elf32.em bfd/ 2004-03-18 12:50:20 +00:00
generic.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
gld960.em * emultempl/aix.em: Convert to C90, remove unnecessary prototypes 2003-06-27 00:38:25 +00:00
gld960c.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
hppaelf.em * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Test 2003-12-01 06:28:56 +00:00
ia64elf.em bfd/ 2003-12-04 22:43:36 +00:00
linux.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
lnk960.em * emultempl/aix.em: Convert to C90, remove unnecessary prototypes 2003-06-27 00:38:25 +00:00
m68hc1xelf.em Oops - omitted from patch that added a second parameter to lang_memory_region_lookup. 2003-10-24 09:54:41 +00:00
m68kcoff.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
m68kelf.em Convert to C90 2003-06-28 05:28:54 +00:00
mipsecoff.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
mipself.em * emultempl/aix.em: Convert to C90, remove unnecessary prototypes 2003-06-27 00:38:25 +00:00
mmix-elfnmmo.em * emultempl/mmix-elfnmmo.em (mmix_before_allocation): Force linker 2003-10-18 15:49:10 +00:00
mmixelf.em * emultempl/aix.em: Convert to C90, remove unnecessary prototypes 2003-06-27 00:38:25 +00:00
mmo.em * ldexp.c (align_n): Make static. 2004-01-03 12:39:07 +00:00
needrelax.em * emultempl/aix.em: Convert to C90, remove unnecessary prototypes 2003-06-27 00:38:25 +00:00
netbsd.em * ldlang.c (lang_do_assignments): Function return is void. 2003-12-04 12:09:25 +00:00
ostring.sed
pe.em Fix typo in previous delta 2004-02-05 11:41:51 +00:00
ppc32elf.em * emultempl/ppc32elf.em: Convert to C90. 2003-06-24 14:04:29 +00:00
ppc64elf.em * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached 2004-01-09 05:36:30 +00:00
README
sh64elf.em * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation): 2003-07-08 18:05:34 +00:00
sunos.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
ticoff.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
vanilla.em * emultempl/aix.em: Convert to C90, remove unnecessary prototypes 2003-06-27 00:38:25 +00:00
xtensaelf.em * emultempl/aix.em: Convert to C90, remove unnecessary prototypes 2003-06-27 00:38:25 +00:00

The files in this directory are sourced by genscripts.sh, after
setting some variables to substitute in, to produce
C source files that contain jump tables for each emulation.