Don't write to inferior_ptid in nto-procfs.c
[deliverable/binutils-gdb.git] / gold / testsuite / relro_test.sh
index 2995302d7dd99da5e884b228fd87b7c94f8305f9..7303a58a3127e9aaec033581fd37f416f1b4fb27 100755 (executable)
@@ -2,7 +2,7 @@
 
 # relro_test.sh -- test -z relro
 
-# Copyright 2010 Free Software Foundation, Inc.
+# Copyright (C) 2010-2020 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
This page took 0.022658 seconds and 4 git commands to generate.