diff options
author | Doug Kwan <dougkwan@google.com> | 2010-03-31 06:05:37 +0000 |
---|---|---|
committer | Doug Kwan <dougkwan@google.com> | 2010-03-31 06:05:37 +0000 |
commit | 323c532faeed4fa174d97f25f96a7c90a1e704fe (patch) | |
tree | 0d881a6e97c3abe2d0104059ab3662b6d1d8f6e3 | |
parent | a9ef41a7031440db3037fca8e96c1a49be0b1ced (diff) | |
download | gdb-323c532faeed4fa174d97f25f96a7c90a1e704fe.zip gdb-323c532faeed4fa174d97f25f96a7c90a1e704fe.tar.gz gdb-323c532faeed4fa174d97f25f96a7c90a1e704fe.tar.bz2 |
2010-03-30 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::using_thumb_only): Handle v6-M
-rw-r--r-- | gold/ChangeLog | 4 | ||||
-rw-r--r-- | gold/arm.cc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 0688cdd..792bd81 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,7 @@ +2010-03-30 Doug Kwan <dougkwan@google.com> + + * arm.cc (Target_arm::using_thumb_only): Handle v6-M + 2010-03-25 Doug Kwan <dougkwan@google.com> * gold/arm.cc (Arm_exidx_fixup::update_offset_map): Rearrange code 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; |