Skip to content

Commit

Permalink
rcutorture: Always strip using the cross-compiler
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Willy Tarreau authored and Paul E. McKenney committed Nov 9, 2018
1 parent 70e9f50 commit 18d7bf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/testing/selftests/rcutorture/bin/mkinitrd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 18d7bf8

Please sign in to comment.