bfd/
authorDaniel Jacobowitz <drow@false.org>
Mon, 29 Mar 2010 20:42:55 +0000 (20:42 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 29 Mar 2010 20:42:55 +0000 (20:42 +0000)
* elf32-arm.c (using_thumb_only): Handle v6-M.

ld/testsuite/
* ld-arm/arm-elf.exp (armeabitests): Add v6-M farcall test.

bfd/ChangeLog
bfd/elf32-arm.c
ld/testsuite/ChangeLog
ld/testsuite/ld-arm/arm-elf.exp

index 97bf5a4a65b696992b486d0bfe004fb9f83272a4..770d00e1f7872a678793f7f75e487ae16458853f 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elf32-arm.c (using_thumb_only): Handle v6-M.
+
 2010-03-26  Alan Modra  <amodra@gmail.com>
 
        * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
index 565861ef1b441ee90e2eeaefd4a3f01c9a958f4f..cebb30228b146ec10796935604174b58341013c8 100644 (file)
@@ -2985,6 +2985,9 @@ using_thumb_only (struct elf32_arm_link_hash_table *globals)
                                       Tag_CPU_arch);
   int profile;
 
+  if (arch == TAG_CPU_ARCH_V6_M || arch == TAG_CPU_ARCH_V6S_M)
+    return TRUE;
+
   if (arch != TAG_CPU_ARCH_V7 && arch != TAG_CPU_ARCH_V7E_M)
     return FALSE;
 
index e8f3f598aa4852e7f1d8ac349ac5abb8a587aa0e..f7aeed754611fba3bdc0af2b3152b0857ee90cc3 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * ld-arm/arm-elf.exp (armeabitests): Add v6-M farcall test.
+
 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
 
        * ld-elf/flags1.d, ld-elf/merge.d: XFAIL for tic6x-*-*.
index 26552b9a053adb2e81e9c65d581ed65ebfd8e1a1..5c4351b4b661ab6069b804a3a65277dd2df3a5de 100644 (file)
@@ -371,16 +371,19 @@ set armeabitests {
     {"Thumb-Thumb farcall with BLX" "-Ttext 0x1000 --section-start .foo=0x2001014" "-march=armv5t" {farcall-thumb-thumb.s}
      {{objdump -d farcall-thumb-thumb-blx.d}}
      "farcall-thumb-thumb-blx"}
-    {"Thumb-Thumb farcall M profile" "-Ttext 0x1000 --section-start .foo=0x2001014" "-march=armv7m" {farcall-thumb-thumb.s}
+    {"Thumb-Thumb farcall M profile" "-Ttext 0x1000 --section-start .foo=0x2001014" "-march=armv7-m" {farcall-thumb-thumb.s}
      {{objdump -d farcall-thumb-thumb-m.d}}
      "farcall-thumb-thumb-m"}
+    {"Thumb-Thumb farcall v6-M" "-Ttext 0x1000 --section-start .foo=0x2001014" "-march=armv6-m" {farcall-thumb-thumb.s}
+     {{objdump -d farcall-thumb-thumb-m.d}}
+     "farcall-thumb-thumb-v6-m"}
     {"Thumb-Thumb farcall" "-Ttext 0x1000 --section-start .foo=0x2001014" "-march=armv4t" {farcall-thumb-thumb.s}
      {{objdump -d farcall-thumb-thumb.d}}
      "farcall-thumb-thumb"}
     {"Thumb-Thumb farcall with BLX (PIC veneer)" "-Ttext 0x1000 --section-start .foo=0x2001014 --pic-veneer" "-march=armv5t" {farcall-thumb-thumb.s}
      {{objdump -d farcall-thumb-thumb-blx-pic-veneer.d}}
      "farcall-thumb-thumb-blx-pic-veneer"}
-    {"Thumb-Thumb farcall M profile (PIC veneer)" "-Ttext 0x1000 --section-start .foo=0x2001014 --pic-veneer" "-march=armv7m" {farcall-thumb-thumb.s}
+    {"Thumb-Thumb farcall M profile (PIC veneer)" "-Ttext 0x1000 --section-start .foo=0x2001014 --pic-veneer" "-march=armv7-m" {farcall-thumb-thumb.s}
      {{objdump -d farcall-thumb-thumb-m-pic-veneer.d}}
      "farcall-thumb-thumb-m-pic-veneer"}
     {"Thumb-Thumb farcall (PIC veneer)" "-Ttext 0x1000 --section-start .foo=0x2001014 --pic-veneer" "-march=armv4t" {farcall-thumb-thumb.s}