mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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: 32e8eaf263 ("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>
This commit is contained in:
parent
41ab5fe747
commit
89350defd1
|
|
@ -27,7 +27,7 @@ quiet_cmd_stub_exe = STUB_EXE $@
|
|||
$(KBUILD_CFLAGS) $(STUB_EXE_LDFLAGS) \
|
||||
$(filter %.o,$^)
|
||||
|
||||
STUB_EXE_LDFLAGS = -n -static
|
||||
STUB_EXE_LDFLAGS = -Wl,-n -static
|
||||
|
||||
targets += stub_exe.dbg stub_exe $(stub_exe_objs-y)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user