bfd/
authorMark Shinwell <shinwell@codesourcery.com>
Mon, 16 Oct 2006 13:09:20 +0000 (13:09 +0000)
committerMark Shinwell <shinwell@codesourcery.com>
Mon, 16 Oct 2006 13:09:20 +0000 (13:09 +0000)
        * elf32-arm.c (using_thumb2): Use TAG_CPU_* constants.

        include/
        * elf/arm.h: Define TAG_CPU_ARCH_* constants.

ChangeLog.csl
bfd/elf32-arm.c
include/elf/arm.h

index 561a5d7..2781bd4 100644 (file)
@@ -1,3 +1,11 @@
+2006-10-16  Mark Shinwell  <shinwell@codesourcery.com>
+
+       bfd/
+       * elf32-arm.c (using_thumb2): Use TAG_CPU_* constants.
+
+       include/
+       * elf/arm.h: Define TAG_CPU_ARCH_* constants.
+
 2006-10-13  Nathan Sidwell  <nathan@codesourcery.com>
 
        gas/
index d1fa731..9859b65 100644 (file)
@@ -3531,7 +3531,7 @@ identify_add_or_sub(bfd_vma insn)
 static int using_thumb2 (struct elf32_arm_link_hash_table *globals)
 {
   int arch = elf32_arm_get_eabi_attr_int (globals->obfd, Tag_CPU_arch);
-  return arch == 8 || arch >= 10;
+  return arch == TAG_CPU_ARCH_V6T2 || arch >= TAG_CPU_ARCH_V7;
 }
 
 /* Perform a relocation as part of a final link.  */
index 6b72977..5945562 100644 (file)
 #define PF_ARM_PI          0x20000000   /* Segment is position-independent.  */
 #define PF_ARM_ABS         0x40000000   /* Segment must be loaded at its base address.  */
 
+/* Values for the Tag_CPU_arch EABI attribute.  */
+#define TAG_CPU_ARCH_PRE_V4    0
+#define TAG_CPU_ARCH_V4                1
+#define TAG_CPU_ARCH_V4T       2
+#define TAG_CPU_ARCH_V5T       3
+#define TAG_CPU_ARCH_V5TE      4
+#define TAG_CPU_ARCH_V5TEJ     5
+#define TAG_CPU_ARCH_V6                6
+#define TAG_CPU_ARCH_V6KZ      7
+#define TAG_CPU_ARCH_V6T2      8
+#define TAG_CPU_ARCH_V6K       9
+#define TAG_CPU_ARCH_V7                10
+
 /* Relocation types.  */
 
 START_RELOC_NUMBERS (elf_arm_reloc_type)