rcutorture: Always strip using the cross-compiler
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Sep 2018 09:41:10 +0000 (11:41 +0200)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 9 Nov 2018 05:52:55 +0000 (21:52 -0800)
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>
tools/testing/selftests/rcutorture/bin/mkinitrd.sh

index 70661457e3d64bc80be0c1708e0e40b9a5905dfb..dbb6f0160281774235751d4fe22815fddec48558 100755 (executable)
@@ -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"