binutils-gdb/ld/scripttempl
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
..
a29k.sc
aix.sc Pass argc and argv to ldemul_choose_target. 2001-12-03 23:15:28 +00:00
alpha.sc
aout.sc
armaout.sc Fix arm aout placement of .bss section 2001-10-11 17:28:43 +00:00
armcoff.sc Define __EH_FRAME_{BEGIN|END}__ 2001-10-20 09:56:29 +00:00
crisaout.sc
delta68.sc
ebmon29k.sc
elf32avr.sc
elf.sc * elf-bfd.h (enum elf_link_info_type): New. 2001-12-13 11:09:34 +00:00
elfd10v.sc Fixup checkin of wrong source 2001-03-08 02:26:19 +00:00
elfd30v.sc * scripttempl/elf.sc, scripttempl/elfd30v.sc, 2001-08-12 20:19:49 +00:00
elfi370.sc * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define. 2001-11-22 09:08:05 +00:00
elfm68hc11.sc * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and 2001-11-25 17:29:27 +00:00
elfm68hc12.sc * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and 2001-11-25 17:29:27 +00:00
epocpe.sc
h8300.sc
h8300h.sc
h8300s.sc
h8500.sc
h8500b.sc
h8500c.sc
h8500m.sc
h8500s.sc
hppaelf.sc
i386beos.sc
i386coff.sc
i386go32.sc Support the GCC flags '-ffunction-sections' and '-fdata-sections'. 2001-03-23 23:05:07 +00:00
i386lynx.sc
i386msdos.sc
i960.sc
m68kaux.sc
m68kcoff.sc
m68klynx.sc
m88kbcs.sc
mcorepe.sc
mips.sc
mipsbsd.sc
mmo.sc Add MMIX support 2001-10-30 15:20:14 +00:00
nw.sc * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define. 2001-11-22 09:08:05 +00:00
pe.sc
pj.sc
ppcpe.sc
psos.sc
README
riscix.sc
sa29200.sc
sh.sc
sparccoff.sc
sparclynx.sc
st2000.sc
tic30aout.sc
tic30coff.sc
tic54xcoff.sc
tic80coff.sc
v850.sc * scripttempl/v850.sc: Add gcc_except_table sections. 2001-09-12 14:09:18 +00:00
vanilla.sc
w65.sc
xstormy16.sc Index: bfd/ChangeLog 2001-12-08 03:46:03 +00:00
z8000.sc

The files in this directory are linker script templates.
genscripts.sh sets some shell variables, then sources
EMULATION.sc, to generate EMULATION.{x,xr,xu,xn,xbn} -- the script
files for default, -r, -Ur, -n, -N.