summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2018-09-09 11:41:10 +0200
committerPaul E. McKenney <paulmck@linux.ibm.com>2018-11-09 06:52:55 +0100
commit18d7bf8ed3a1628ee653d3abde051703642ecd60 (patch)
tree1119f30e68df6a5984571a9f6d53aef4e2d5874d /tools/testing/selftests/rcutorture
parentrcutorture: Add cross-compile capability to initrd.sh (diff)
downloadlinux-18d7bf8ed3a1628ee653d3abde051703642ecd60.tar.xz
linux-18d7bf8ed3a1628ee653d3abde051703642ecd60.zip
rcutorture: Always strip using the cross-compiler
Strip using -s on the compiler command line instead of calling the "strip" utility as the latter isn't necessarily compatible with the target arch. Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools/testing/selftests/rcutorture')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/mkinitrd.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
index 70661457e3d6..dbb6f0160281 100755
--- a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
+++ b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
@@ -113,8 +113,7 @@ int main(int argc, int argv[])
return 0;
}
___EOF___
-${CROSS_COMPILE}gcc -static -Os -o init init.c
-strip init
+${CROSS_COMPILE}gcc -s -static -Os -o init init.c
rm init.c
echo "Done creating a statically linked C-language initrd"