aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/testsuite/reloc9.sh
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-07-22 18:58:28 -0500
committerMark Hatle <mark.hatle@windriver.com>2010-07-22 18:58:28 -0500
commit45f3e0e99fc1f0385ef2fa5f8c5fd126edb1805c (patch)
tree1bd69ffa9f93f975f72003b820d0787acb645155 /trunk/testsuite/reloc9.sh
parent1c973105e4bad9e31f0096fd6baa41e772d17484 (diff)
parentac2eeba55196424954b58cf540c44e42bc2774dc (diff)
downloadprelink-cross-45f3e0e99fc1f0385ef2fa5f8c5fd126edb1805c.tar.gz
prelink-cross-45f3e0e99fc1f0385ef2fa5f8c5fd126edb1805c.tar.bz2
prelink-cross-45f3e0e99fc1f0385ef2fa5f8c5fd126edb1805c.zip
Merge commit 'ac2eeba55196424954b58cf540c44e42bc2774dc' into cross_prelink
Conflicts: trunk/src/dso.c trunk/testsuite/reloc8.sh trunk/testsuite/reloc9.sh
Diffstat (limited to 'trunk/testsuite/reloc9.sh')
-rwxr-xr-xtrunk/testsuite/reloc9.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/trunk/testsuite/reloc9.sh b/trunk/testsuite/reloc9.sh
index d3a449c..8c48fa7 100755
--- a/trunk/testsuite/reloc9.sh
+++ b/trunk/testsuite/reloc9.sh
@@ -2,13 +2,18 @@
. `dirname $0`/functions.sh
# Disable this test under SELinux
if [ "x$CROSS" = "x" ]; then
- test -x /usr/sbin/getenforce -a "`/usr/sbin/getenforce`" = Enforcing && exit 77
+ if test -x /usr/sbin/getenforce; then
+ case "`/usr/sbin/getenforce 2>/dev/null`" in
+ Permissive|Disabled) ;;
+ *) exit 77 ;;
+ esac
+ fi
fi
rm -f reloc9 reloc9lib*.so reloc9.log
rm -f prelink.cache
NOCOPYRELOC=-Wl,-z,nocopyreloc
case "`uname -m`" in
- x86_64|s390*) if file reloc1lib1.so | grep -q 64-bit; then NOCOPYRELOC=; fi;;
+ x86_64|s390*|sparc*) if file reloc1lib1.so | grep -q 64-bit; then NOCOPYRELOC=; fi;;
esac
$CC -shared -O2 -Wl,-z,nocombreloc -fpic -o reloc9lib1.so $srcdir/reloc3lib1.c
$CC -shared -O2 -Wl,-z,nocombreloc -fpic -o reloc9lib2.so $srcdir/reloc1lib2.c reloc9lib1.so