aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-03-22 00:19:14 +0000
committerIan Lance Taylor <ian@airs.com>2011-03-22 00:19:14 +0000
commit07aead7b6735a00e1d1fd4ce265a64bdfda15c77 (patch)
tree0ff908081078524db883390a24f70f74e30273b0 /gold/testsuite
parenteb9d298f6feebd71561f97d34a44ada097c09fcd (diff)
downloadgdb-07aead7b6735a00e1d1fd4ce265a64bdfda15c77.zip
gdb-07aead7b6735a00e1d1fd4ce265a64bdfda15c77.tar.gz
gdb-07aead7b6735a00e1d1fd4ce265a64bdfda15c77.tar.bz2
* testsuite/relro_test.sh: Fail if dc is not present.
Diffstat (limited to 'gold/testsuite')
-rwxr-xr-xgold/testsuite/relro_test.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/gold/testsuite/relro_test.sh b/gold/testsuite/relro_test.sh
index 2995302..47a9491 100755
--- a/gold/testsuite/relro_test.sh
+++ b/gold/testsuite/relro_test.sh
@@ -2,7 +2,7 @@
# relro_test.sh -- test -z relro
-# Copyright 2010 Free Software Foundation, Inc.
+# Copyright 2010, 2011 Free Software Foundation, Inc.
# Written by Cary Coutant <ccoutant@google.com>.
# This file is part of gold.
@@ -63,8 +63,9 @@ check()
RELRO_END=`echo "16o 16i $RELRO_START $RELRO_LEN + p" | dc`
REM=`echo "16i $RELRO_END $LOAD_ALIGN % p" | dc`
- if test "$REM" -ne 0
- then
+ if test "$REM" -eq 0; then
+ :
+ else
echo "PT_GNU_RELRO segment does not end at page boundary."
exit 1
fi