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

s390/vdso: Create .build-id links for unstripped vdso files

Citing Andy Lutomirski from commit dda1e95cee38 ("x86/vdso: Create
.build-id links for unstripped vdso files"):

"With this change, doing 'make vdso_install' and telling gdb:

set debug-file-directory /lib/modules/KVER/vdso

will enable vdso debugging with symbols. This is useful for
testing, but kernel RPM builds will probably want to manually delete
these symlinks or otherwise do something sensible when they strip
the vdso/*.so files."

Fixes: 4bff8cb54502 ("s390: convert to GENERIC_VDSO")
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>

authored by

Jens Remus and committed by
Alexander Gordeev
fc2f5f10 10f70525

+1 -1
+1 -1
scripts/Makefile.vdsoinst
··· 21 21 $$(call cmd,install) 22 22 23 23 # Some architectures create .build-id symlinks 24 - ifneq ($(filter arm sparc x86, $(SRCARCH)),) 24 + ifneq ($(filter arm s390 sparc x86, $(SRCARCH)),) 25 25 link := $(install-dir)/.build-id/$$(shell $(READELF) -n $$(src) | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p').debug 26 26 27 27 __default: $$(link)