binutils-gdb/ld/scripttempl
Joseph Myers 104d59d19c bfd:
* elf-attrs.c: New.
	* Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
	(BFD32_BACKENDS_CFILES): Add elf-attrs.c.
	(elf-attrs.lo): Generate dependencies.
	* Makefile.in: Regenerate.
	* configure.in (elf): Add elf-attrs.lo.
	* configure: Regenerate.
	* elf-bfd.h (struct elf_backend_data): Add entries for object
	attributes.
	(NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
	OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
	Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
	New.
	(struct elf_obj_tdata): Add entries for object attributes.
	(elf_known_obj_attributes, elf_other_obj_attributes,
	elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
	New.
	(bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
	bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
	bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
	bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
	bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
	_bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
	_bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
	* elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
	(bfd_section_from_shdr): Handle attributes sections.
	* elflink.c (bfd_elf_final_link): Handle attributes sections.
	* elfxx-target.h (elf_backend_obj_attrs_vendor,
	elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
	elf_backend_obj_attrs_section_type): New.
	(elfNN_bed): Update.
	* elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
	aeabi_attribute_list): Remove.
	(struct elf32_arm_obj_tdata): Remove object attributes fields.
	(check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
	elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
	Update for new object attributes interfaces.
	(uleb128_size, is_default_attr, eabi_attr_size,
	elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
	elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
	elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
	elf32_arm_add_eabi_attr_int, attr_strdup,
	elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
	copy_eabi_attributes, elf32_arm_parse_attributes): Remove.  Moved
	to generic code in elf-attrs.c.
	(elf32_arm_obj_attrs_arg_type): New.
	(elf32_arm_fake_sections): Do not handle .ARM.attributes.
	(elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
	(bfd_elf32_bfd_final_link): Remove.
	(elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
	elf_backend_obj_attrs_arg_type,
	elf_backend_obj_attrs_section_type): New.
	* elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
	attributes.
	* elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
	* elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
	* elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
	* elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
	* elf32-sh.c (sh_elf_copy_private_data): Likewise.
	* elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.

binutils:
	* readelf.c (display_gnu_attribute): New.
	(process_arm_specific): Rearrange as process_attributes.
	(process_arm_specific): Replace by wrapper of process_attributes.

gas:
	* as.c (create_obj_attrs_section): New.
	(main): Call create_obj_attrs_section for ELF.
	* read.c (s_gnu_attribute, skip_whitespace, skip_past_char,
	skip_past_comma, s_vendor_attribute): New.
	(potable): Add gnu_attribute for ELF.
	* read.h (s_vendor_attribute): Declare.
	* config/tc-arm.c (s_arm_eabi_attribute): Replace by wrapper
	round s_vendor_attribute.
	(aeabi_set_public_attributes): Update for new attributes
	interfaces.
	(arm_md_end): Remove attributes contents setting now done
	generically.

include/elf:
	* arm.h (elf32_arm_add_eabi_attr_int,
	elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
	elf32_arm_get_eabi_attr_int, elf32_arm_set_eabi_attr_contents,
	elf32_arm_eabi_attr_size, Tag_NULL, Tag_File, Tag_Section,
	Tag_Symbol, Tag_compatibility): Remove.
	* common.h (SHT_GNU_ATTRIBUTES): Define.

ld:
	* emulparams/armelf.sh (OTHER_SECTIONS): Remove .ARM.attributes.
	(ATTRS_SECTIONS): Define.
	* scripttempl/elf.sc, scripttempl/elf32sh-symbian.sc,
	scripttempl/elf_chaos.sc, scripttempl/elfi370.sc,
	scripttempl/elfxtensa.sc: Handle ATTRS_SECTIONS.
2007-06-29 16:29:17 +00:00
..
README 19990502 sourceware import 1999-05-03 07:29:11 +00:00
a29k.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
aix.sc * emulparams/elf64ppc.sh (DATA_ADDR): Define. 2002-09-24 04:02:03 +00:00
alpha.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
aout.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
armaout.sc Fix arm aout placement of .bss section 2001-10-11 17:28:43 +00:00
armbpabi.sc * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will 2006-08-28 01:52:56 +00:00
armcoff.sc Add iWMMXt support 2003-03-25 20:56:01 +00:00
avr.sc Add support for AVR6 family 2006-05-24 07:36:12 +00:00
crisaout.sc * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will 2006-08-28 01:52:56 +00:00
delta68.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
dlx.sc Add DLX target 2002-05-28 14:08:47 +00:00
ebmon29k.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
elf.sc bfd: 2007-06-29 16:29:17 +00:00
elf32cr16.sc New port: National Semiconductor's CR16 2007-06-29 14:09:34 +00:00
elf32cr16c.sc Add (linker) support for CR16C processor 2004-03-30 14:04:32 +00:00
elf32crx.sc * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will 2006-08-28 01:52:56 +00:00
elf32msp430.sc Apply Dmitry Diky's patches to add relaxation to msp430. 2004-08-25 12:54:15 +00:00
elf32msp430_3.sc Add initX, finiX, ctors, dtors sections to respect C++ constructor/destructor. 2003-04-09 11:07:51 +00:00
elf32sh-symbian.sc bfd: 2007-06-29 16:29:17 +00:00
elf32xc16x.sc Add support for the Infineon XC16X. 2006-02-17 14:36:28 +00:00
elf32xc16xl.sc Add support for the Infineon XC16X. 2006-02-17 14:36:28 +00:00
elf32xc16xs.sc Add support for the Infineon XC16X. 2006-02-17 14:36:28 +00:00
elf_chaos.sc bfd: 2007-06-29 16:29:17 +00:00
elfd10v.sc * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will 2006-08-28 01:52:56 +00:00
elfd30v.sc * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will 2006-08-28 01:52:56 +00:00
elfi370.sc bfd: 2007-06-29 16:29:17 +00:00
elfm68hc11.sc * scripttempl/elfm68hc12.sc: Add gcc_except_table. 2003-07-29 20:17:17 +00:00
elfm68hc12.sc * scripttempl/elfm68hc12.sc: Align text, rodata and data section 2004-08-01 20:04:22 +00:00
elfxtensa.sc bfd: 2007-06-29 16:29:17 +00:00
epocpe.sc Add arm-epoc-pe specific linker script 1999-12-02 11:49:20 +00:00
h8300.sc Add support for h8300hn and h8300sn 2003-04-24 12:36:08 +00:00
h8300h.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 11:42:27 +00:00
h8300hn.sc oops - omitted from previous delta 2003-04-24 15:25:24 +00:00
h8300s.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 11:42:27 +00:00
h8300sn.sc oops - omitted from previous delta 2003-04-24 15:25:24 +00:00
h8300sx.sc 2003-06-03 Michael Snyder <msnyder@redhat.com> 2003-06-03 21:43:52 +00:00
h8300sxn.sc * scripttempl/h8300sxn.sc: New file. 2003-06-10 08:31:04 +00:00
h8500.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
h8500b.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
h8500c.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
h8500m.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
h8500s.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
hppaelf.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
i386beos.sc Add .gnu.linkonce.wi.* to .debug_info sections. 2000-09-02 20:43:22 +00:00
i386coff.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
i386go32.sc * scripttempl/i386go32.sc: Handle bss unique sections. 2002-09-23 11:36:15 +00:00
i386msdos.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
i860coff.sc 2003-08-04 Christian Groessler <chris@groessler.org> 2003-08-06 02:19:05 +00:00
i960.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
ip2k.sc Add IP2k support to BFD and LD 2002-07-17 14:15:52 +00:00
iq2000.sc * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will 2006-08-28 01:52:56 +00:00
m68kaux.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
m68kcoff.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
m68klynx.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
m88kbcs.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
maxqcoff.sc Add support fpr MAXQ processor 2004-11-08 13:17:43 +00:00
mcorepe.sc Fix typo in defintion of OUTPUT_FORMAT. 1999-08-11 09:21:38 +00:00
mep.sc Support for Toshiba MeP. 2007-02-05 20:16:32 +00:00
mips.sc [ bfd/ChangeLog ] 2004-04-21 20:52:31 +00:00
mipsbsd.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
mmo.sc * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will 2006-08-28 01:52:56 +00:00
nw.sc * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define. 2001-11-22 09:08:05 +00:00
or32.sc Add support for OpenRISC 32-bit embedded processor 2002-01-31 17:33:08 +00:00
pe.sc * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set 2005-10-05 08:07:51 +00:00
pep.sc Add x86_64-mingw64 target 2006-09-20 11:35:11 +00:00
pj.sc 1999-09-04 Steve Chamberlain <sac@pobox.com> 1999-09-04 17:37:36 +00:00
ppcpe.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
psos.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
riscix.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sa29200.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sh.sc From "Anita Kulkarni" <AnitaK@kpit.com> 2002-09-25 17:06:09 +00:00
sparccoff.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sparclynx.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
st2000.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
tic4xcoff.sc Namespace cleanup for the tic4x target. Replace s/c4x/tic4x/ and s/c3x/tic3x/. 2003 copyright update 2003-04-04 08:15:15 +00:00
tic30aout.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
tic30coff.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
tic54xcoff.sc Remove unimplemented "PAGE N:" flag from default linker script. 2000-06-30 12:36:38 +00:00
tic80coff.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
v850.sc Add EXTERN references to __ctbpm __gp and __ep. 2002-09-02 17:03:30 +00:00
vanilla.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
w65.sc Use ${CONSTRUCTING...} to enclose constructors and destructors. 2000-11-03 19:49:05 +00:00
xstormy16.sc * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will 2006-08-28 01:52:56 +00:00
z80.sc Add support for the Z80 processor family 2005-10-25 17:40:19 +00:00
z8000.sc Use ${CONSTRUCTING...} to enclose constructors and destructors. 2000-11-03 19:49:05 +00:00

README

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.