]> www.infradead.org Git - users/jedix/linux-maple.git/commit
um: Fix passing '-n' to linker for stub_exe
authorNathan Chancellor <nathan@kernel.org>
Wed, 16 Oct 2024 21:12:37 +0000 (14:12 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 17 Oct 2024 08:33:31 +0000 (10:33 +0200)
commit89350defd1f0eb5a58a7e1155d9e322080f0bf15
tree8e36f72c4e94327b8d0c75805510465827a6c966
parent41ab5fe7471ff38d2909d1c93b88197a89c6a00f
um: Fix passing '-n' to linker for stub_exe

When building stub_exe with clang, there is an error because '-n' is not
a recognized flag by the clang driver (which is being used to invoke the
linker):

  clang: error: unknown argument: '-n'

'-n' should be passed along to the linker, as it is the short flag for
'--nmagic', so prefix it with '-Wl,'.

Fixes: 32e8eaf263d9 ("um: use execveat to create userspace MMs")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20241016-uml-fix-stub_exe-clang-v1-1-3d6381dc5a78@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/kernel/skas/Makefile