aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2021-01-21 08:48:08 +0100
committerPaul E. McKenney <paulmck@kernel.org>2021-01-21 10:06:45 -0800
commit26cec81415b1b2a2e8e36ef0b24cf5f26467aa61 (patch)
tree57b50ff7e222d9646d9cdffc81f7e9608caf0495 /tools/testing/selftests/rcutorture/bin/mkinitrd.sh
parenttools/nolibc: Fix position of -lgcc in the documented example (diff)
downloadlinux-dev-26cec81415b1b2a2e8e36ef0b24cf5f26467aa61.tar.xz
linux-dev-26cec81415b1b2a2e8e36ef0b24cf5f26467aa61.zip
tools/rcutorture: Fix position of -lgcc in mkinitrd.sh
The -lgcc command-line argument is placed poorly in the build options, which can result in build failures, for exapmle, on ARM when uidiv() is required. This commit therefore places the -lgcc argument after the source files. Fixes: b94ec36896da ("rcutorture: Make use of nolibc when available") Tested-by: Valentin Schneider <valentin.schneider@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> [arm64] Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/mkinitrd.sh')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/mkinitrd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
index 38e424d2392c..70d62fd0d31d 100755
--- a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
+++ b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
@@ -70,7 +70,7 @@ if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \
# architecture supported by nolibc
${CROSS_COMPILE}gcc -fno-asynchronous-unwind-tables -fno-ident \
-nostdlib -include ../../../../include/nolibc/nolibc.h \
- -lgcc -s -static -Os -o init init.c
+ -s -static -Os -o init init.c -lgcc
else
${CROSS_COMPILE}gcc -s -static -Os -o init init.c
fi