]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
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 561a5d7e17315a0268fcdbe4e6b0519cf0e382a8..2781bd4bff9a319b10a6a8ad8ca5fca4d35b8901 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 d1fa73108daf1134847d70c7c84cbb43ccc7cf25..9859b65dc4a9a65f7b3da6f6e20f54bb5cb3d2f8 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 6b7297733ef9a5403484bf07e54bba081b881143..5945562816542aad91caf3d002405d4d6bf48457 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)