binutils-gdb/ld/emulparams
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
..
aix5ppc.sh
aix5rs6.sh
aixppc.sh
aixrs6.sh
alpha.sh
arcelf.sh bfd/ 2006-06-20 02:22:16 +00:00
arm_epoc_pe.sh
arm_wince_pe.sh bfd 2006-08-21 08:12:46 +00:00
armaoutb.sh
armaoutl.sh
armcoff.sh
armelf_fbsd.sh
armelf_linux_eabi.sh
armelf_linux.sh * NEWS: Mention --vfp11-denorm-fix option. 2007-01-29 16:28:40 +00:00
armelf_nbsd.sh bfd/ 2006-05-30 16:45:32 +00:00
armelf_vxworks.sh bfd/ 2006-05-30 16:45:32 +00:00
armelf.sh bfd: 2007-06-29 16:29:17 +00:00
armelfb_linux_eabi.sh
armelfb_linux.sh
armelfb_nbsd.sh
armelfb.sh
armnbsd.sh
armnto.sh * NEWS: Mention --vfp11-denorm-fix option. 2007-01-29 16:28:40 +00:00
armpe.sh
armsymbian.sh bfd/ 2006-05-30 16:45:32 +00:00
avr1.sh Add support for AVR6 family 2006-05-24 07:36:12 +00:00
avr2.sh Add support for AVR6 family 2006-05-24 07:36:12 +00:00
avr3.sh Add support for AVR6 family 2006-05-24 07:36:12 +00:00
avr4.sh Add support for AVR6 family 2006-05-24 07:36:12 +00:00
avr5.sh Add support for AVR6 family 2006-05-24 07:36:12 +00:00
avr6.sh Add support for AVR6 family 2006-05-24 07:36:12 +00:00
bfin.sh 2006-08-04 Nick Clifton <nickc@redhat.com> 2006-08-06 05:23:16 +00:00
coff_i860.sh
coff_sparc.sh
crisaout.sh
criself.sh * scripttempl/elf.sc (INTERP): Delete. Move definition to.. 2006-10-17 13:55:11 +00:00
crislinux.sh bfd/ 2006-05-30 16:45:32 +00:00
d10velf.sh
d30v_e.sh bfd/ 2006-06-20 02:22:16 +00:00
d30v_o.sh bfd/ 2006-06-20 02:22:16 +00:00
d30velf.sh bfd/ 2006-06-20 02:22:16 +00:00
delta68.sh
elf32_dlx.sh bfd/ 2006-06-20 02:22:16 +00:00
elf32_i860.sh bfd/ 2006-06-20 02:22:16 +00:00
elf32_i960.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32_sparc_vxworks.sh bfd/ 2006-04-05 12:41:59 +00:00
elf32_sparc.sh * emulparams/elf32_sparc.sh: Update comments. 2007-04-27 00:09:31 +00:00
elf32_spu.sh * emulparams/elf32_spu.sh (OTHER_SECTIONS): KEEP .note.spu_name. 2007-06-20 00:28:44 +00:00
elf32am33lin.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32b4300.sh
elf32bfinfd.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32bmip.sh * emulparams/elf32_sparc.sh: Update comments. 2007-04-27 00:09:31 +00:00
elf32bmipn32-defs.sh ld/ 2006-10-20 07:55:37 +00:00
elf32bmipn32.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32bsmip.sh
elf32btsmip.sh
elf32btsmipn32.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32cr16.sh New port: National Semiconductor's CR16 2007-06-29 14:09:34 +00:00
elf32cr16c.sh
elf32crx.sh
elf32ebmip.sh
elf32ebmipvxworks.sh ld/ 2007-05-18 09:18:18 +00:00
elf32elmip.sh
elf32elmipvxworks.sh Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
elf32fr30.sh bfd/ 2006-06-20 02:22:16 +00:00
elf32frv.sh bfd/ 2006-06-20 02:22:16 +00:00
elf32frvfd.sh bfd/ 2006-06-20 02:22:16 +00:00
elf32i370.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32ip2k.sh
elf32iq10.sh bfd/ 2006-06-20 02:22:16 +00:00
elf32iq2000.sh bfd/ 2006-06-20 02:22:16 +00:00
elf32l4300.sh
elf32lmip.sh
elf32lppc.sh
elf32lppcnto.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32lppcsim.sh
elf32lsmip.sh
elf32ltsmip.sh
elf32ltsmipn32.sh
elf32m32c.sh
elf32mcore.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32mep.sh Support for Toshiba MeP. 2007-02-05 20:16:32 +00:00
elf32mipswindiss.sh
elf32mt.sh bfd/ 2006-06-20 02:22:16 +00:00
elf32openrisc.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32ppc_fbsd.sh
elf32ppc.sh * emulparams/elf32_sparc.sh: Update comments. 2007-04-27 00:09:31 +00:00
elf32ppccommon.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32ppclinux.sh
elf32ppcnto.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32ppcsim.sh
elf32ppcvxworks.sh bfd/ 2006-03-02 08:50:04 +00:00
elf32ppcwindiss.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32vax.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32xc16x.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32xc16xl.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32xc16xs.sh bfd/ 2006-05-30 16:45:32 +00:00
elf32xstormy16.sh
elf32xtensa.sh * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO 2007-06-11 23:46:32 +00:00
elf64_aix.sh bfd/ 2006-05-30 16:45:32 +00:00
elf64_ia64_fbsd.sh
elf64_ia64.sh bfd/ 2006-05-30 16:45:32 +00:00
elf64_s390.sh bfd/ 2006-05-30 16:45:32 +00:00
elf64_sparc_fbsd.sh 2006-10-18 Roy Marples <uberlord@gentoo.org> 2006-10-18 23:58:52 +00:00
elf64_sparc.sh bfd/ 2006-05-30 16:45:32 +00:00
elf64alpha_fbsd.sh
elf64alpha_nbsd.sh
elf64alpha.sh bfd/ 2006-05-30 16:45:32 +00:00
elf64bmip-defs.sh ld/ 2006-10-16 21:34:25 +00:00
elf64bmip.sh ld/ 2006-10-16 21:34:25 +00:00
elf64btsmip.sh ld/ 2006-10-16 21:34:25 +00:00
elf64hppa.sh bfd/ 2006-05-30 16:45:32 +00:00
elf64lppc.sh
elf64ltsmip.sh
elf64mmix.sh bfd/ 2006-05-30 16:45:32 +00:00
elf64ppc.sh bfd/ 2007-02-13 01:53:03 +00:00
elf_fbsd.sh
elf_i386_be.sh bfd/ 2006-05-30 16:45:32 +00:00
elf_i386_chaos.sh bfd/ 2006-05-30 16:45:32 +00:00
elf_i386_fbsd.sh
elf_i386_ldso.sh bfd/ 2006-05-30 16:45:32 +00:00
elf_i386_vxworks.sh bfd/ 2006-05-30 16:45:32 +00:00
elf_i386.sh bfd/ 2006-05-30 16:45:32 +00:00
elf_s390.sh bfd/ 2006-05-30 16:45:32 +00:00
elf_x86_64_fbsd.sh PR binutils/2983 2006-08-02 16:25:14 +00:00
elf_x86_64.sh * configure.tgt (i[3-7]86-*-linux-*): Also define 2006-10-18 16:24:01 +00:00
gld960.sh
gld960coff.sh
h8300.sh * emulparams/h8300elf.sh: _tinydata should not be placed in relocatables. 2006-09-07 17:01:10 +00:00
h8300elf.sh * emulparams/h8300elf.sh (TINY_DATA_SECTION, TINY_BSS_SECTION): Don't 2006-10-23 03:30:02 +00:00
h8300h.sh
h8300helf.sh
h8300hn.sh
h8300hnelf.sh
h8300s.sh
h8300self.sh
h8300sn.sh
h8300snelf.sh
h8300sx.sh
h8300sxelf.sh * emulparams/h8300elf.sh: _tinydata should not be placed in relocatables. 2006-09-07 17:01:10 +00:00
h8300sxn.sh
h8300sxnelf.sh
h8500.sh
h8500b.sh
h8500c.sh
h8500m.sh
h8500s.sh
hp3hpux.sh
hp300bsd.sh
hppa64linux.sh 2006-10-25 H.J. Lu <hongjiu.lu@intel.com> 2006-10-26 00:31:59 +00:00
hppaelf.sh
hppalinux.sh bfd/ 2006-05-30 16:45:32 +00:00
hppanbsd.sh
hppaobsd.sh bfd/ 2006-05-30 16:45:32 +00:00
i386aout.sh
i386beos.sh
i386bsd.sh
i386coff.sh
i386go32.sh
i386linux.sh
i386lynx.sh bfd/ 2006-05-30 16:45:32 +00:00
i386mach.sh
i386moss.sh bfd/ 2006-05-30 16:45:32 +00:00
i386msdos.sh
i386nbsd.sh
i386nto.sh bfd/ 2006-05-30 16:45:32 +00:00
i386nw.sh bfd/ 2006-05-30 16:45:32 +00:00
i386pe_posix.sh
i386pe.sh
i386pep.sh Add x86_64-mingw64 target 2006-09-20 11:35:11 +00:00
lnk960.sh
m32relf_linux.sh bfd/ 2006-05-30 16:45:32 +00:00
m32relf.sh * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from 2005-08-05 04:29:57 +00:00
m32rlelf_linux.sh
m32rlelf.sh
m68hc11elf.sh
m68hc11elfb.sh
m68hc12elf.sh
m68hc12elfb.sh
m68k4knbsd.sh
m68kaout.sh
m68kaux.sh
m68kcoff.sh
m68kelf.sh bfd/ 2006-05-30 16:45:32 +00:00
m68kelfnbsd.sh
m68klinux.sh
m68knbsd.sh
m68kpsos.sh bfd/ 2006-05-30 16:45:32 +00:00
m88kbcs.sh
maxqcoff.sh
mcorepe.sh
mipsbig.sh
mipsbsd.sh
mipsidt.sh
mipsidtl.sh
mipslit.sh
mipslnews.sh
mipspe.sh
mmo.sh
mn10200.sh bfd/ 2006-06-20 02:22:16 +00:00
mn10300.sh bfd/ 2006-06-20 02:22:16 +00:00
msp430all.sh bfd/ 2006-06-20 02:22:16 +00:00
news.sh
ns32knbsd.sh
or32.sh bfd/ 2006-06-20 02:22:16 +00:00
or32elf.sh bfd/ 2006-06-20 02:22:16 +00:00
pc532macha.sh
pdp11.sh
pjelf.sh bfd/ 2006-06-20 02:22:16 +00:00
pjlelf.sh bfd/ 2006-06-20 02:22:16 +00:00
ppclynx.sh bfd/ 2006-05-30 16:45:32 +00:00
ppcmacos.sh
ppcnw.sh bfd/ 2006-05-30 16:45:32 +00:00
ppcpe.sh
README
riscix.sh
scoreelf.sh Add support for Score target. 2006-09-16 23:51:50 +00:00
sh.sh
shelf32_linux.sh
shelf32_nbsd.sh bfd/ 2006-05-30 16:45:32 +00:00
shelf32.sh * emulparams/shelf32.sh: Set default stack to 0x80000. 2006-10-22 01:07:30 +00:00
shelf64_nbsd.sh
shelf64.sh * emulparams/shelf32.sh: Set default stack to 0x80000. 2006-10-22 01:07:30 +00:00
shelf_linux.sh
shelf_nbsd.sh bfd/ 2006-05-30 16:45:32 +00:00
shelf_nto.sh bfd/ 2006-05-30 16:45:32 +00:00
shelf_uclinux.sh * emulparams/shelf_uclinux.sh: New. Missed in 2007-02-28 commit. 2007-03-02 21:02:48 +00:00
shelf_vxworks.sh bfd/ 2006-08-04 13:13:56 +00:00
shelf.sh
shl.sh
shlelf32_linux.sh bfd/ 2006-05-30 16:45:32 +00:00
shlelf32_nbsd.sh
shlelf32.sh
shlelf64_nbsd.sh
shlelf64.sh
shlelf_linux.sh bfd/ 2006-05-30 16:45:32 +00:00
shlelf_nbsd.sh
shlelf_nto.sh bfd/ 2006-05-30 16:45:32 +00:00
shlelf_vxworks.sh bfd/ 2006-08-04 13:13:56 +00:00
shlelf.sh
shlsymbian.sh
shpe.sh
sparcaout.sh
sparclinux.sh
sparcnbsd.sh
st2000.sh
sun3.sh
sun4.sh
tic3xcoff_onchip.sh
tic3xcoff.sh
tic4xcoff.sh
tic30aout.sh
tic30coff.sh
tic54xcoff.sh
tic80coff.sh
v850.sh
vanilla.sh
vax.sh
vaxnbsd.sh
vsta.sh
vxworks.sh * emulparams/elf32_sparc.sh: Update comments. 2007-04-27 00:09:31 +00:00
w65.sh
z80.sh Add support for the Z80 processor family 2005-10-25 17:40:19 +00:00
z8001.sh
z8002.sh

The files in this directory are read by genscripts.sh as shell commands.
They set parameters for the emulations.