From 07aead7b6735a00e1d1fd4ce265a64bdfda15c77 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 22 Mar 2011 00:19:14 +0000 Subject: [PATCH] * testsuite/relro_test.sh: Fail if dc is not present. --- gold/ChangeLog | 1 + gold/testsuite/relro_test.sh | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index ca1ae8ce5a1..de3c3453ff5 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,6 +1,7 @@ 2011-03-21 Ian Lance Taylor * testsuite/final_layout.sh: Rewrite to not use dc. + * testsuite/relro_test.sh: Fail if dc is not present. 2011-03-21 Sriraman Tallam diff --git a/gold/testsuite/relro_test.sh b/gold/testsuite/relro_test.sh index 2995302d7dd..47a94910b63 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 . # 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 -- 2.30.2