This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gold patch committed: Make relro_test fail if dc is not present


This patch at least makes gold's relro_test fail if dc is not present on
the system.  Committed to mainline.

Ian


2011-03-21  Ian Lance Taylor  <iant@google.com>

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


Index: testsuite/relro_test.sh
===================================================================
RCS file: /cvs/src/src/gold/testsuite/relro_test.sh,v
retrieving revision 1.1
diff -u -r1.1 relro_test.sh
--- testsuite/relro_test.sh	16 Oct 2010 00:37:25 -0000	1.1
+++ testsuite/relro_test.sh	22 Mar 2011 00:18:37 -0000
@@ -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 @@
   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]