* testsuite/relro_test.sh: Fail if dc is not present.

This commit is contained in:
Ian Lance Taylor 2011-03-22 00:19:14 +00:00
parent eb9d298f6f
commit 07aead7b67
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,7 @@
2011-03-21 Ian Lance Taylor <iant@google.com> 2011-03-21 Ian Lance Taylor <iant@google.com>
* testsuite/final_layout.sh: Rewrite to not use dc. * testsuite/final_layout.sh: Rewrite to not use dc.
* testsuite/relro_test.sh: Fail if dc is not present.
2011-03-21 Sriraman Tallam <tmsriram@google.com> 2011-03-21 Sriraman Tallam <tmsriram@google.com>

View file

@ -2,7 +2,7 @@
# relro_test.sh -- test -z relro # 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>. # Written by Cary Coutant <ccoutant@google.com>.
# This file is part of gold. # This file is part of gold.
@ -63,8 +63,9 @@ check()
RELRO_END=`echo "16o 16i $RELRO_START $RELRO_LEN + p" | dc` RELRO_END=`echo "16o 16i $RELRO_START $RELRO_LEN + p" | dc`
REM=`echo "16i $RELRO_END $LOAD_ALIGN % p" | dc` REM=`echo "16i $RELRO_END $LOAD_ALIGN % p" | dc`
if test "$REM" -ne 0 if test "$REM" -eq 0; then
then :
else
echo "PT_GNU_RELRO segment does not end at page boundary." echo "PT_GNU_RELRO segment does not end at page boundary."
exit 1 exit 1
fi fi