]> git.baikalelectronics.ru Git - kernel.git/commit
x86/vdso: Create .build-id links for unstripped vdso files
authorAndy Lutomirski <luto@amacapital.net>
Fri, 20 Jun 2014 19:20:44 +0000 (12:20 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 20 Jun 2014 20:18:49 +0000 (13:18 -0700)
commit38d33ec6f8f44b90226737eb1526239f49c0ac93
tree650ca543485cfdcfcb6331982c281c255887456e
parentf482d1e34af9182def3b77c1974399be651efdd1
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.

If ld does not support --build-id, then the symlinks will not be
created.

Note that kernel packagers that use vdso_install may need to adjust
their packaging scripts to accomdate this change.  For example,
Fedora's scripts create build-id symlinks themselves in a different
location, so the spec should probably be updated to remove the
symlinks created by make vdso_install.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/a424b189ce3ced85fe1e82d032a20e765e0fe0d3.1403291930.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/vdso/Makefile