[PATCH 4/4] kbuild: vdso_install: drop build ID architecture allow-list

Thomas Weißschuh posted 4 patches 2 weeks ago
There is a newer version of this series
[PATCH 4/4] kbuild: vdso_install: drop build ID architecture allow-list
Posted by Thomas Weißschuh 2 weeks ago
Many architectures which do generate build IDs are missing from this
list. For example arm64, riscv, loongarch, mips.

Now that errors from readelf and binaries without any build ID are
handled gracefully, the allow-list is not necessary anymore, drop it.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 scripts/Makefile.vdsoinst | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/scripts/Makefile.vdsoinst b/scripts/Makefile.vdsoinst
index 3de70218b8d4..d9f7243217bc 100644
--- a/scripts/Makefile.vdsoinst
+++ b/scripts/Makefile.vdsoinst
@@ -19,8 +19,6 @@ __default: $$(dest)
 $$(dest): $(1) FORCE
 	$$(call cmd,install)
 
-# Some architectures create .build-id symlinks
-ifneq ($(filter arm s390 sparc x86, $(SRCARCH)),)
 build-id-file := $$(shell $(READELF) -n $(1) 2>/dev/null | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p')
 
 ifneq ($$(build-id-file),)
@@ -30,7 +28,6 @@ __default: $$(link)
 $$(link): $$(dest) FORCE
 	$$(call cmd,symlink)
 endif
-endif
 
 endef
 

-- 
2.53.0

Re: [PATCH 4/4] kbuild: vdso_install: drop build ID architecture allow-list
Posted by Nicolas Schier 3 days, 13 hours ago
On Fri, 20 Mar 2026 17:36:56 +0100, Thomas Weißschuh <linux@weissschuh.net> wrote:
> Many architectures which do generate build IDs are missing from this
> list. For example arm64, riscv, loongarch, mips.
> 
> Now that errors from readelf and binaries without any build ID are
> handled gracefully, the allow-list is not necessary anymore, drop it.
> 
> 
> [...]

Reviewed-by: Nicolas Schier <nsc@kernel.org>

-- 
Nicolas