]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/um: fix vDSO installation
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 18 Mar 2026 21:03:26 +0000 (22:03 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 21 Mar 2026 09:43:21 +0000 (10:43 +0100)
The generic vDSO installation logic used by 'make vdso_install' requires
that $(vdso-install-y) is defined by the top-level architecture Makefile
and that it contains a path relative to the root of the tree.
For UML neither of these is satisfied.

Move the definition of $(vdso-install-y) to a place which is included by
the arch/um/Makefile and use the full relative path.

Fixes: f1c2bb8b9964 ("um: implement a x86_64 vDSO")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20260318-um-vdso-install-v1-1-26a4ca5c4210@weissschuh.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/x86/Makefile.um
arch/x86/um/vdso/Makefile

index c86cbd9cbba38f24eaed2f1119b4ed2b54386eb1..19c13afa474e9da57d38e94ff9c8db7509614af7 100644 (file)
@@ -60,4 +60,6 @@ ELF_FORMAT := elf64-x86-64
 LINK-$(CONFIG_LD_SCRIPT_DYN_RPATH) += -Wl,-rpath,/lib64
 LINK-y += -m64
 
+vdso-install-y += arch/x86/um/vdso/vdso.so.dbg
+
 endif
index 8a7c8b37cb6eb673034f068f4a7840bf0ec1a7c2..7664cbedbe30fb228e6d0c09b28022a97fff4623 100644 (file)
@@ -3,8 +3,6 @@
 # Building vDSO images for x86.
 #
 
-vdso-install-y += vdso.so
-
 # files to link into the vdso
 vobjs-y := vdso-note.o um_vdso.o