The patch titled Use --build-id ld option has been added to the -mm tree. Its filename is use-build-id-ld-option.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Use --build-id ld option From: Roland McGrath <roland@xxxxxxxxxx> This change passes the --build-id when linking the kernel and when linking modules, if ld supports it. This is a new GNU ld option that synthesizes an ELF note section inside the read-only data. The note in this section contains unique identifying bits called the "build ID", which are generated so as to be different for any two linked ELF files that aren't identical. The build ID can be recovered from stripped files, memory dumps, etc. and used to look up the original program built, locate debuginfo or other details or history associated with it. For normal program linking, the compiler passes --build-id to ld by default, but the option is needed when using ld directly as we do. Signed-off-by: Roland McGrath <roland@xxxxxxxxxx> Cc: Andi Kleen <ak@xxxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Cc: Richard Henderson <rth@xxxxxxxxxxx> Cc: Ivan Kokshaysky <ink@xxxxxxxxxxxxxxxxxxxx> Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx> Cc: Heiko Carstens <heiko.carstens@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Makefile | 6 ++++++ 1 files changed, 6 insertions(+) diff -puN Makefile~use-build-id-ld-option Makefile --- a/Makefile~use-build-id-ld-option +++ a/Makefile @@ -524,6 +524,12 @@ CFLAGS += $(call cc-option,-Wdeclaration # disable pointer signed / unsigned warnings in gcc 4.0 CFLAGS += $(call cc-option,-Wno-pointer-sign,) +# Use --build-id when available. +LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ + $(call ld-option, -Wl$(comma)--build-id,)) +LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) +LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) + # Default kernel image to build when no specific target is given. # KBUILD_IMAGE may be overruled on the command line or # set in the environment _ Patches currently in -mm which might be from roland@xxxxxxxxxx are powerpc-vdso-install-unstripped-copies-on-disk.patch pass-g-to-assembler-under-config_debug_info.patch x86-use-elfnoteh-to-generate-vsyscall-notes-fix.patch make-alt-sysrq-p-display-the-debug-register-contents.patch i386-vdso-install-unstripped-copies-on-disk.patch x86_64-ia32-vdso-install-unstripped-copies-on-disk.patch clone-flag-clone_parent_tidptr-leaves-invalid-results-in-memory.patch pie-randomization.patch i386-put-allocated-elf-notes-in-read-only-data-segment.patch x86_64-put-allocated-elf-notes-in-read-only-data-segment.patch alpha-put-allocated-elf-notes-in-read-only-data-segment.patch powerpc-put-allocated-elf-notes-in-read-only-data-segment.patch s390-put-allocated-elf-notes-in-read-only-data-segment.patch add-sys-kernel-notes.patch use-build-id-ld-option.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html