tools/rcutorture: Fix position of -lgcc in mkinitrd.sh
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Jan 2021 07:48:08 +0000 (08:48 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 21 Jan 2021 18:06:45 +0000 (10:06 -0800)
commit26cec81415b1b2a2e8e36ef0b24cf5f26467aa61
tree57b50ff7e222d9646d9cdffc81f7e9608caf0495
parent3c6ce7a5363723a05bfe3ee03a8d4a9b66841ae4
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>
tools/testing/selftests/rcutorture/bin/mkinitrd.sh