From cd21e5460f664d311f34645388138a44c228dc97 Mon Sep 17 00:00:00 2001 From: Matthew Gretton-Dann Date: Thu, 18 Feb 2010 10:56:28 +0000 Subject: * bfd/elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for merging Tag_DIV_use, Tag_MPextension_use, and Tag_MPextension_use_legacy tags. * binutils/readelf.c (arm_attr_tag_Advanced_SIMD_arch): Add description of newly permitted attribute values. (arm_attr_tag_Virtualization_use): Likewise. (arm_attr_tag_DIV_use): Add description of new attribute. (arm_attr_tag_MPextension_use_legacy): Likewise. * gas/config/tc-arm.c (arm_convert_symbolic_attribute): Add Tag_DIV_use. * gas/doc/c-arm.texi: Likewise. * gas/testsuite/gas/arm/attr-order.d: Fix test for new names for attribute values. * include/elf/arm.h (Tag_MPextension_use): Renumber. (Tag_DIV_use): Add. (Tag_MPextension_use_legacy): Likewise. * ld/testsuite/ld-arm/attr-merge-3.attr: Fix test for new attribute values. * ld/testsuite/ld-arm/attr-merge-3b.s: Likewise. * ld/testsuite/ld-arm/attr-merge-unknown-1.d: Fix test now that 42 is a recognised attribute ID. * ld/testsuite/ld-arm/attr-merge-unknown-1.s: Likewise. * ld/testsuite/ld-arm/attr-merge-6.attr: New test. * ld/testsuite/ld-arm/attr-merge-6a.s: Likewise. * ld/testsuite/ld-arm/attr-merge-6b.s: Likewise. * ld/testsuite/ld-arm/attr-merge-7.attr: Likewise. * ld/testsuite/ld-arm/attr-merge-7a.s: Likewise. * ld/testsuite/ld-arm/attr-merge-7b.s: Likewise. * ld/testsuite/ld-arm/arm-elf.exp: Run the new tests. --- gas/ChangeLog | 5 +++++ gas/config/tc-arm.c | 4 +++- gas/doc/c-arm.texi | 3 ++- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/arm/attr-order.d | 2 +- 5 files changed, 16 insertions(+), 3 deletions(-) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index 9532e7c..6258c3d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2010-02-18 Matthew Gretton-Dann + + * config/tc-arm.c (arm_convert_symbolic_attribute): Add Tag_DIV_use. + * doc/c-arm.texi: Likewise. + 2010-02-12 Daniel Gutson * config/tc-arm.c (asm_opcode): operands type diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 4706600..04b3f70 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -23043,12 +23043,14 @@ arm_convert_symbolic_attribute (const char *name) T (Tag_CPU_unaligned_access), T (Tag_VFP_HP_extension), T (Tag_ABI_FP_16bit_format), + T (Tag_MPextension_use), + T (Tag_DIV_use), T (Tag_nodefaults), T (Tag_also_compatible_with), T (Tag_conformance), T (Tag_T2EE_use), T (Tag_Virtualization_use), - T (Tag_MPextension_use) + /* We deliberately do not include Tag_MPextension_use_legacy. */ #undef T }; unsigned int i; diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi index 69ed6b6..11d7215 100644 --- a/gas/doc/c-arm.texi +++ b/gas/doc/c-arm.texi @@ -587,9 +587,10 @@ The @var{tag} is either an attribute number, or one of the following: @code{Tag_ABI_optimization_goals}, @code{Tag_ABI_FP_optimization_goals}, @code{Tag_compatibility}, @code{Tag_CPU_unaligned_access}, @code{Tag_VFP_HP_extension}, @code{Tag_ABI_FP_16bit_format}, +@code{Tag_MPextension_use}, @code{Tag_DIV_use}, @code{Tag_nodefaults}, @code{Tag_also_compatible_with}, @code{Tag_conformance}, @code{Tag_T2EE_use}, -@code{Tag_Virtualization_use}, @code{Tag_MPextension_use} +@code{Tag_Virtualization_use} The @var{value} is either a @code{number}, @code{"string"}, or @code{number, "string"} depending on the tag. diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index ff4268f..c424263 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-02-18 Matthew Gretton-Dann + + * gas/arm/attr-order.d: Fix test for new names for attribute + values. + 2010-02-12 Daniel Gutson * gas/arm/sp-pc-validations-bad.d: New testcase. diff --git a/gas/testsuite/gas/arm/attr-order.d b/gas/testsuite/gas/arm/attr-order.d index 3f10867..83f9f68 100644 --- a/gas/testsuite/gas/arm/attr-order.d +++ b/gas/testsuite/gas/arm/attr-order.d @@ -16,4 +16,4 @@ File Attributes Tag_unknown_63: "val" Tag_also_compatible_with: v6-M Tag_T2EE_use: Allowed - Tag_Virtualization_use: Allowed + Tag_Virtualization_use: TrustZone -- cgit v1.1