aboutsummaryrefslogtreecommitdiff
path: root/gold/arm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/arm.cc')
-rw-r--r--gold/arm.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/arm.cc b/gold/arm.cc
index aac5f75..0f9f1bd 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -2053,6 +2053,10 @@ class Target_arm : public Sized_target<32, big_endian>
{
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;