darling-gdb/ld/emultempl
Jakub Jelinek 6576570080 * elf-bfd.h (enum elf_link_info_type): New.
(struct bfd_elf_section_data): Remove stab_info and merge_info
	fields, add sec_info and sec_info_type.
	(struct elf_obj_tdata): Add eh_frame_hdr field.
	(_bfd_elf_discard_section_eh_frame): New prototype.
	(_bfd_elf_discard_section_eh_frame_hdr): Likewise.
	(_bfd_elf_eh_frame_section_offset): Likewise.
	(_bfd_elf_write_section_eh_frame): Likewise.
	(_bfd_elf_write_section_eh_frame_hdr): Likewise.
	* Makefile.am (BFD32_BACKENDS): Add elf-eh-frame.lo.
	(BFD32_BACKENDS_CFILES): Add elf-eh-frame.c.
	(elf-eh-frame.lo): New.
	* Makefile.in: Rebuilt.
	* configure.in (elf): Add elf-eh-frame.lo.
	* configure: Rebuilt.
	* elf.c (_bfd_elf_print_private_bfd_data): Support PT_GNU_EH_FRAME.
	(map_sections_to_segments): Create PT_GNU_EH_FRAME if requested.
	(get_program_header_size): Take into account PT_GNU_EH_FRAME
	segment.
	(_bfd_elf_rela_local_sym): Use sec_info_type and sec_info.
	(_bfd_elf_rel_local_sym): Likewise.
	(_bfd_elf_section_offset): Likewise.  Call
	_bfd_elf_eh_frame_section_offset too.
	* elfxx-ia64.c (elfNN_ia64_relocate_section): Use sec_info_type and
	sec_info.
	* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
	* elf-eh-frame.c: New file.
	* elflink.h (elf_link_add_object_symbols): Don't optimize SHF_MERGE
	.stab sections.  Set sec_info_type, use sec_info instead
	of merge_info and stab_info.
	(elf_link_create_dynamic_sections): Create .eh_frame_hdr section
	if --eh-frame-hdr.
	(elf_bfd_final_link): Write .eh_frame_hdr section.
	(elf_link_sec_merge_syms): Use sec_info_type and sec_info.
	(elf_link_input_bfd): Likewise.
	Call _bfd_elf_write_section_eh_frame to write .eh_frame sections.
	(elf_bfd_discard_info): Add output_bfd argument.
	Call _bfd_elf_discard_section_eh_frame and
	_bfd_elf_discard_section_eh_frame_hdr.
	(elf_section_ignore_discarded_relocs): Use sec_info_type, not section
	names.
	* bfd-in.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Adjust
	prototypes.
	* bfd-in2.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Likewise.

	* elf/common.h (PT_GNU_EH_FRAME): Define.
	* bfdlink.h (struct bfd_link_info): Add eh_frame_hdr field.

	* emultempl/elf32.em (finish): Supply output_bfd
	to bfd_elf*_discard_info.
	(OPTION_EH_FRAME_HDR): Define.
	(longopts): Add --eh-frame-hdr.
	(parse_args): Handle it.
	(list_options): Add --eh-frame-hdr to help.
	* emultempl/hppaelf.em (finish): Supply output_bfd
	to bfd_elf*_discard_info.
	* scripttempl/elf.sc (.eh_frame_hdr): Add.

	* readelf.c (get_segment_type): Support PT_GNU_EH_FRAME.
2001-12-13 11:09:34 +00:00
..
aix.em Formatting and misc cleanup for AIX. 2001-12-05 13:34:46 +00:00
armcoff.em * emultempl/aix.em: Add missing prototype. 2001-09-03 06:43:37 +00:00
armelf_oabi.em * emultempl/aix.em: Add missing prototype. 2001-09-03 06:43:37 +00:00
armelf.em * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this 2001-11-15 12:44:03 +00:00
astring.sed * emultempl/ostring.sed: Rename from stringify.sed. 1999-08-06 22:46:03 +00:00
beos.em * deffilep.y (def_stash_module): Constify "name" param. 2001-09-18 10:10:21 +00:00
elf32.em * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
generic.em Update copyright notice 2001-08-13 07:31:29 +00:00
gld960.em Pass argc and argv to ldemul_choose_target. 2001-12-03 23:15:28 +00:00
gld960c.em Pass argc and argv to ldemul_choose_target. 2001-12-03 23:15:28 +00:00
hppaelf.em * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
linux.em 2001-05-24 H.J. Lu <hjl@gnu.org> 2001-05-25 05:39:22 +00:00
lnk960.em * emultempl/aix.em: Add missing prototype. 2001-09-03 06:43:37 +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
mmix-elfnmmo.em Add MMIX support 2001-10-30 15:20:14 +00:00
mmixelf.em Add MMIX support 2001-10-30 15:20:14 +00:00
mmo.em Add MMIX support 2001-10-30 15:20:14 +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 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo. 2001-12-11 18:31:57 +00:00
README 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sunos.em Locale changes from Bruno Haible <haible@clisp.cons.org>. 2001-09-19 05:33:36 +00:00
ticoff.em Regenerate files using fixed aclocal install. 2000-09-06 00:13:34 +00:00
vanilla.em * emultempl/aix.em: Add missing prototype. 2001-09-03 06:43:37 +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.