This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[GOLD][COMMITTED] Trivial change to support v6-M
- From: =?big5?b?RG91ZyBLd2FuICjD9q62vHcp?= <dougkwan at google dot com>
- To: binutils <binutils at sourceware dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Tue, 30 Mar 2010 23:08:16 -0700
- Subject: [GOLD][COMMITTED] Trivial change to support v6-M
Hi,
I just committed this trivial change below. This is similar to an
earlier patch to BFD:
http://sourceware.org/ml/binutils-cvs/2010-03/msg00153.html
2010-03-30 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::using_thumb_only): Handle v6-M
Index: gold/arm.cc
===================================================================
RCS file: /cvs/src/src/gold/arm.cc,v
retrieving revision 1.95
diff -u -u -p -r1.95 arm.cc
--- gold/arm.cc 26 Mar 2010 04:53:34 -0000 1.95
+++ gold/arm.cc 31 Mar 2010 05:54:05 -0000
@@ -2053,6 +2053,10 @@ class Target_arm : public Sized_target<3
{
Object_attribute* attr =
this->get_aeabi_object_attribute(elfcpp::Tag_CPU_arch);
+
+ if (attr->int_value() == elfcpp::TAG_CPU_ARCH_V6_M
+ || attr->int_value() == elfcpp::TAG_CPU_ARCH_V6S_M)
+ return true;
if (attr->int_value() != elfcpp::TAG_CPU_ARCH_V7
&& attr->int_value() != elfcpp::TAG_CPU_ARCH_V7E_M)
return false;