Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: vdso_install: gracefully handle images without build ID

If the vDSO does not contain a build ID, skip the symlink step.
This will allow the removal of the explicit list of architectures.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20260331-kbuild-vdso-install-v2-3-606d0dc6beca@weissschuh.net
Signed-off-by: Nicolas Schier <nsc@kernel.org>

authored by

Thomas Weißschuh and committed by
Nicolas Schier
e4fb2342 ec213747

+3
+3
scripts/Makefile.vdsoinst
··· 22 22 # Some architectures create .build-id symlinks 23 23 ifneq ($(filter arm s390 sparc x86, $(SRCARCH)),) 24 24 build-id-file := $$(shell $(READELF) -n $(1) 2>/dev/null | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p') 25 + 26 + ifneq ($$(build-id-file),) 25 27 link := $(install-dir)/.build-id/$$(build-id-file).debug 26 28 27 29 __default: $$(link) 28 30 $$(link): $$(dest) FORCE 29 31 $$(call cmd,symlink) 32 + endif 30 33 endif 31 34 32 35 endef