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
..
2002-03-18 12:46:27 +00:00
2002-03-18 12:46:27 +00:00
2002-03-18 12:46:27 +00:00
2002-03-18 12:46:27 +00:00
1999-05-03 07:29:11 +00:00
2006-06-20 02:22:16 +00:00
2004-09-28 19:14:29 +00:00
2006-08-21 08:12:46 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2004-09-17 12:18:19 +00:00
2004-11-19 19:28:40 +00:00
2007-01-29 16:28:40 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2007-06-29 16:29:17 +00:00
2005-01-22 01:50:35 +00:00
2003-05-09 20:05:04 +00:00
2002-05-21 15:11:04 +00:00
2003-05-09 20:05:04 +00:00
1999-08-24 15:17:23 +00:00
2007-01-29 16:28:40 +00:00
2004-09-28 19:14:29 +00:00
2006-05-30 16:45:32 +00:00
2006-05-24 07:36:12 +00:00
2006-05-24 07:36:12 +00:00
2006-05-24 07:36:12 +00:00
2006-05-24 07:36:12 +00:00
2006-05-24 07:36:12 +00:00
2006-05-24 07:36:12 +00:00
2006-08-06 05:23:16 +00:00
2003-08-06 02:19:05 +00:00
1999-05-03 07:29:11 +00:00
2000-07-20 17:16:06 +00:00
2006-10-17 13:55:11 +00:00
2006-05-30 16:45:32 +00:00
2002-06-17 14:08:40 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
1999-05-03 07:29:11 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
2006-05-30 16:45:32 +00:00
2006-04-05 12:41:59 +00:00
2007-04-27 00:09:31 +00:00
2007-06-20 00:28:44 +00:00
2006-05-30 16:45:32 +00:00
2002-11-30 08:39:46 +00:00
2006-05-30 16:45:32 +00:00
2007-04-27 00:09:31 +00:00
2006-10-20 07:55:37 +00:00
2006-05-30 16:45:32 +00:00
2004-04-08 14:52:44 +00:00
2005-06-01 19:26:25 +00:00
2006-05-30 16:45:32 +00:00
2007-06-29 14:09:34 +00:00
2004-03-30 14:04:32 +00:00
2004-07-07 17:28:53 +00:00
2001-11-22 09:08:05 +00:00
2007-05-18 09:18:18 +00:00
2001-11-22 09:08:05 +00:00
2006-03-22 09:28:15 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
2006-05-30 16:45:32 +00:00
2003-08-29 00:34:27 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
2001-11-22 09:08:05 +00:00
2001-11-22 09:08:05 +00:00
2001-11-22 09:08:05 +00:00
2006-05-30 16:45:32 +00:00
2001-11-22 09:08:05 +00:00
2001-11-22 09:08:05 +00:00
2001-11-22 09:08:05 +00:00
2002-07-30 23:48:30 +00:00
2005-07-20 19:33:18 +00:00
2006-05-30 16:45:32 +00:00
2007-02-05 20:16:32 +00:00
2003-10-30 09:47:15 +00:00
2006-06-20 02:22:16 +00:00
2006-05-30 16:45:32 +00:00
2002-02-18 09:38:01 +00:00
2007-04-27 00:09:31 +00:00
2006-05-30 16:45:32 +00:00
2005-08-03 05:09:49 +00:00
2006-05-30 16:45:32 +00:00
2001-11-22 09:08:05 +00:00
2006-03-02 08:50:04 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2001-12-08 03:46:03 +00:00
2007-06-11 23:46:32 +00:00
2006-05-30 16:45:32 +00:00
2004-10-14 17:00:16 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2006-10-18 23:58:52 +00:00
2006-05-30 16:45:32 +00:00
2002-09-17 02:24:40 +00:00
2001-12-17 23:54:58 +00:00
2006-05-30 16:45:32 +00:00
2006-10-16 21:34:25 +00:00
2006-10-16 21:34:25 +00:00
2006-10-16 21:34:25 +00:00
2006-05-30 16:45:32 +00:00
2001-08-27 10:45:55 +00:00
2001-11-22 09:08:05 +00:00
2006-05-30 16:45:32 +00:00
2007-02-13 01:53:03 +00:00
2002-02-18 09:38:01 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2002-09-17 02:24:40 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2006-08-02 16:25:14 +00:00
2006-10-18 16:24:01 +00:00
2003-10-16 08:46:35 +00:00
2003-10-16 08:46:35 +00:00
2006-09-07 17:01:10 +00:00
2006-10-23 03:30:02 +00:00
1999-05-03 07:29:11 +00:00
2001-11-22 09:08:05 +00:00
2003-04-24 15:25:24 +00:00
2003-04-24 15:25:24 +00:00
1999-05-03 07:29:11 +00:00
2001-11-22 09:08:05 +00:00
2003-04-24 15:25:24 +00:00
2003-04-24 15:25:24 +00:00
2003-06-03 21:43:52 +00:00
2006-09-07 17:01:10 +00:00
2003-06-10 07:09:31 +00:00
2003-06-10 07:09:31 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2006-10-26 00:31:59 +00:00
2000-07-28 01:33:14 +00:00
2006-05-30 16:45:32 +00:00
2004-07-27 22:30:25 +00:00
2006-05-30 16:45:32 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2006-05-30 16:45:32 +00:00
1999-05-03 07:29:11 +00:00
2006-05-30 16:45:32 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2004-09-28 19:14:29 +00:00
2004-09-28 19:14:29 +00:00
2006-09-20 11:35:11 +00:00
2003-10-16 08:46:35 +00:00
2006-05-30 16:45:32 +00:00
2005-08-05 04:29:57 +00:00
2003-12-19 11:44:01 +00:00
2003-12-19 11:44:01 +00:00
2003-04-21 13:29:05 +00:00
2003-04-21 13:29:05 +00:00
2003-04-21 13:29:05 +00:00
2003-04-21 13:29:05 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2000-07-21 23:31:53 +00:00
2006-05-30 16:45:32 +00:00
2001-12-18 13:26:26 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2006-05-30 16:45:32 +00:00
2003-10-16 08:46:35 +00:00
2004-11-08 13:17:43 +00:00
2004-09-28 19:14:29 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2004-04-21 20:52:31 +00:00
2004-04-21 20:52:31 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2004-09-28 19:14:29 +00:00
2001-10-30 15:20:14 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
1999-05-03 07:29:11 +00:00
2002-07-31 12:50:09 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
1999-05-03 07:29:11 +00:00
2001-02-18 23:33:11 +00:00
2006-06-20 02:22:16 +00:00
2006-06-20 02:22:16 +00:00
2006-05-30 16:45:32 +00:00
2002-03-18 12:46:27 +00:00
2006-05-30 16:45:32 +00:00
2004-09-28 19:14:29 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2006-09-16 23:51:50 +00:00
2001-11-22 09:08:05 +00:00
2002-10-09 19:09:59 +00:00
2006-05-30 16:45:32 +00:00
2006-10-22 01:07:30 +00:00
2002-06-04 02:57:44 +00:00
2006-10-22 01:07:30 +00:00
2001-11-22 09:08:05 +00:00
2006-05-30 16:45:32 +00:00
2006-05-30 16:45:32 +00:00
2007-03-02 21:02:48 +00:00
2006-08-04 13:13:56 +00:00
2004-12-23 12:27:45 +00:00
2001-11-22 09:08:05 +00:00
2006-05-30 16:45:32 +00:00
2002-06-04 02:57:44 +00:00
2002-02-08 06:39:01 +00:00
2002-06-04 02:57:44 +00:00
2002-02-08 06:39:01 +00:00
2006-05-30 16:45:32 +00:00
2002-01-08 04:23:02 +00:00
2006-05-30 16:45:32 +00:00
2006-08-04 13:13:56 +00:00
2001-11-22 09:08:05 +00:00
2004-07-06 16:58:43 +00:00
2004-09-28 19:14:29 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2003-04-04 08:15:15 +00:00
2003-04-04 08:15:15 +00:00
2003-04-04 08:15:15 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00
2000-06-20 13:29:07 +00:00
1999-05-03 07:29:11 +00:00
2002-09-02 17:03:30 +00:00
2003-10-16 08:46:35 +00:00
2002-07-01 08:32:30 +00:00
2002-05-30 02:40:03 +00:00
1999-05-03 07:29:11 +00:00
2007-04-27 00:09:31 +00:00
1999-05-03 07:29:11 +00:00
2005-10-25 17:40:19 +00:00
1999-05-03 07:29:11 +00:00
1999-05-03 07:29:11 +00:00