Skip to content

Commit 18d7bf8

Browse files
wtarreauPaul E. McKenney
authored andcommitted
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 <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 70e9f50 commit 18d7bf8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/testing/selftests/rcutorture/bin/mkinitrd.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ int main(int argc, int argv[])
113113
return 0;
114114
}
115115
___EOF___
116-
${CROSS_COMPILE}gcc -static -Os -o init init.c
117-
strip init
116+
${CROSS_COMPILE}gcc -s -static -Os -o init init.c
118117
rm init.c
119118
echo "Done creating a statically linked C-language initrd"
120119

0 commit comments

Comments
 (0)