darling-gdb/ld/emultempl
Jakub Jelinek db6751f2e7 * elf-bfd.h (enum elf_reloc_type_class): New.
(struct elf_backend_data): Add elf_backend_reloc_type_class.
	(_bfd_elf_reloc_type_class): New.
	* elfxx-target.h (elf_backend_reloc_type_class): Define.
	(elfNN_bed): Add elf_backend_reloc_type_class.
	* elf.c (_bfd_elf_reloc_type_class): New.
	* elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
	is against read-only section.
	(elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
	looking up section names for DT_TEXTREL.
	(elf_i386_reloc_type_class): New.
	(elf_backend_reloc_type_class): Define.
	* elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
	reloc is against read-only section.
	(elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
	looking up section names for DT_TEXTREL.
	(elf32_sparc_reloc_type_class): New.
	(elf_backend_reloc_type_class): Define.
	* elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
	reloc is against read-only section.
	(sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
	looking up section names for DT_TEXTREL.
	(sparc64_elf_reloc_type_class): New.
	(elf_backend_reloc_type_class): Define.
	* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
	(elfNN_ia64_hash_table_create): Clear ia64_info.
	(get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
	section.
	(elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
	instead of looking up section names for DT_TEXTREL.
	(elfNN_ia64_reloc_type_class): New.
	(elf_backend_reloc_type_class): Define.
	* elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
	(struct elf_link_sort_rela): New.
	(elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
	(elf_bfd_final_link): Call elf_link_sort_relocs.
	Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
	necessary.

	* bfdlink.h (struct bfd_link_info): Add combreloc and
	spare_dynamic_tags fields.

	* emultempl/elf32.em (place_orphan): Place orphan .rel* sections
	into .rel.dyn resp. .rela.dyn if combreloc.
	(get_script): If .x linker script is equal to .xn, only put it
	once into the binary.
	Add .xc and .xsc scripts.
	(parse_args): Handle -z combreloc and -z nocombreloc.
	* scripttempl/elf.sc (.rela.sbss): Fix a typo.
	For .xc and .xsc scripts put all .rel* or .rela* input sections
	but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
	* genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
	is elf.
	Strip trailing whitespace from script.
	Generate .xc and .xsc scripts if requested.
	* ldmain.c (main): Initialize link_info.combreloc and
	link_info.spare_dynamic_tags.
	* lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
	(ld_options): Add --spare-dynamic-tags option.
	(parse_args): Likewise.
	* ld.texinfo: Document -z combreloc and -z nocombreloc.
	* ldint.texinfo: Document .xc and .xsc linker scripts.
	* NEWS: Add notes about -z combreloc and SHF_MERGE.
2001-08-23 15:14:18 +00:00
..
aix.em * emultempl/aix.em: Formatting fixes. 2001-08-18 15:42:26 +00:00
armcoff.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
armelf_oabi.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
armelf.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
astring.sed * emultempl/ostring.sed: Rename from stringify.sed. 1999-08-06 22:46:03 +00:00
beos.em * ldlang.c: When traversing lang_statement_union_type lists, 2001-08-20 02:14:50 +00:00
elf32.em * elf-bfd.h (enum elf_reloc_type_class): New. 2001-08-23 15:14:18 +00:00
generic.em Update copyright notice 2001-08-13 07:31:29 +00:00
gld960.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
gld960c.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
hppaelf.em * ldlang.c: When traversing lang_statement_union_type lists, 2001-08-20 02:14:50 +00:00
linux.em 2001-05-24 H.J. Lu <hjl@gnu.org> 2001-05-25 05:39:22 +00:00
lnk960.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
m68kcoff.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
m68kelf.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
mipsecoff.em 2001-05-24 H.J. Lu <hjl@gnu.org> 2001-05-25 05:39:22 +00:00
needrelax.em * emultempl/needrelax.em: New file. 2001-08-13 20:40:31 +00:00
ostring.sed * emultempl/ostring.sed: Rename from stringify.sed. 1999-08-06 22:46:03 +00:00
pe.em * ldlang.c: When traversing lang_statement_union_type lists, 2001-08-20 02:14:50 +00:00
README 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sunos.em 2001-05-24 H.J. Lu <hjl@gnu.org> 2001-05-25 05:39:22 +00:00
ticoff.em Regenerate files using fixed aclocal install. 2000-09-06 00:13:34 +00:00
vanilla.em Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +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.