binutils-gdb/ld/emultempl
H.J. Lu e56f61be75 bfd/
2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>

	* bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
	DYN_NO_NEEDED.
	(bfd_elf_get_dyn_lib_class): New prototype.
	* elf.c (bfd_elf_get_dyn_lib_class): New function.

	* elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
	DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
	entry is needed. Issue an error if a DT_NEEDED entry is needed
	for a file marked DYN_NO_NEEDED.
	(elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
	for DT_NEEDED tags.

	* bfd-in2.h: Regenerated.

ld/

2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>

	* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
	check the add_needed field.
	(dt_needed): New struct.
	(gld${EMULATION_NAME}_try_needed): Change the first argument
	to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
	bit in the file where the DT_NEEDED entry comes from.
	(gld${EMULATION_NAME}_search_needed): Change the second
	argument to a pointer to struct dt_needed.
	(gld${EMULATION_NAME}_check_ld_so_conf): Updated.
	(gld${EMULATION_NAME}_after_open): Likewise.

	* ld.texinfo: Add --add-needed document.
	* ldlang.c (new_afile): Set p->add_needed.
	* ldlang.h (lang_input_statement_type): Add add_needed field.
	* ldmain.h (add_needed): Declare.
	* ldmain.c (add_needed): New global var.
	* lexsup.c (option_values): Add OPTION_ADD_NEEDED and
	OPTION_NO_ADD_NEEDED.
	(ld_options): Likewise.
	(parse_args): Handle them.
2004-07-19 16:40:52 +00:00
..
README 19990502 sourceware import 1999-05-03 07:29:11 +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 bfd/ 2004-05-25 06:33:51 +00:00
armelf_oabi.em * bfd/bfd-in.h (bfd_elf32_arm_process_before_allocation): Update. 2004-04-01 11:20:04 +00:00
astring.sed * emultempl/ostring.sed: Rename from stringify.sed. 1999-08-06 22:46:03 +00:00
beos.em * ldfile.c (ldfile_set_output_arch): Add defarch param. 2004-01-03 11:09:07 +00:00
crxelf.em Add new port: crx-elf 2004-07-07 17:28:53 +00:00
elf32.em bfd/ 2004-07-19 16:40:52 +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 bfd/ 2004-05-25 06:33:51 +00:00
ia64elf.em bfd/ 2003-12-04 22:43:36 +00:00
irix.em * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix. 2004-04-08 14:52:44 +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 [ bfd/ChangeLog ] 2004-04-21 20:52:31 +00:00
mmix-elfnmmo.em bfd/ 2004-06-24 04:46:28 +00:00
mmixelf.em * emultempl/aix.em: Convert to C90, remove unnecessary prototypes 2003-06-27 00:38:25 +00:00
mmo.em * ldgram.y (sect_constraint): New. 2004-05-19 14:01:14 +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 * emultempl/ostring.sed: Rename from stringify.sed. 1999-08-06 22:46:03 +00:00
pe.em (make_import_fixup): Use bfd_get_32 to correct for endian-ness of extracted 2004-07-13 18:56:38 +00:00
ppc32elf.em * emultempl/ppc32elf.em: Convert to C90. 2003-06-24 14:04:29 +00:00
ppc64elf.em bfd/ 2004-05-25 06:33:51 +00:00
sh64elf.em bfd/ 2004-06-24 04:46:28 +00:00
sunos.em bfd/ 2004-06-24 04:46:28 +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 bfd/ 2004-06-24 04:46:28 +00:00

README

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.