aboutsummaryrefslogtreecommitdiff
path: root/gold/arm.cc
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2011-06-01 19:59:42 +0000
committerDoug Kwan <dougkwan@google.com>2011-06-01 19:59:42 +0000
commitf62a3ca73197039811735a77ba091b329cf57d2e (patch)
tree5f93ac0d064d93a94098fc71f80698d267ea3ef3 /gold/arm.cc
parent4b819e1f6e40e09d3d2b73b76afa007b842b3857 (diff)
downloadgdb-f62a3ca73197039811735a77ba091b329cf57d2e.zip
gdb-f62a3ca73197039811735a77ba091b329cf57d2e.tar.gz
gdb-f62a3ca73197039811735a77ba091b329cf57d2e.tar.bz2
2011-05-31 Doug Kwan <dougkwan@google.com>
Asier Llano PR gold/12826 * arm.cc (Target_arm::tag_cpu_arch_combine): Fix handling of arch value that equals to elfcpp::MAX_TAG_CPU_ARCH. * testsuite/Makefile.am: (MOSTLYCLEANFILES): Clean up. Remove redundant arm_exidx_test.so. * testsuite/Makefile.in: Regenerate. (check_SCRIPTS): Add pr12826.sh (check_DATA): Add pr12826.stdout (pr12826.stdout, pr12826.so, pr12826_1.o, pr12826_2.o): New rules. * testsuite/pr12826.sh: New file. * testsuite/pr12826_1.s: Ditto. * testsuite/pr12826_1.s: Ditto.
Diffstat (limited to 'gold/arm.cc')
-rw-r--r--gold/arm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/arm.cc b/gold/arm.cc
index 9af0e21..e36b3ab 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -10202,7 +10202,7 @@ Target_arm<big_endian>::tag_cpu_arch_combine(
// Check we've not got a higher architecture than we know about.
- if (oldtag >= elfcpp::MAX_TAG_CPU_ARCH || newtag >= elfcpp::MAX_TAG_CPU_ARCH)
+ if (oldtag > elfcpp::MAX_TAG_CPU_ARCH || newtag > elfcpp::MAX_TAG_CPU_ARCH)
{
gold_error(_("%s: unknown CPU architecture"), name);
return -1;