The patch titled i386: Put allocated ELF notes in read-only data segment has been added to the -mm tree. Its filename is i386-put-allocated-elf-notes-in-read-only-data-segment.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: i386: Put allocated ELF notes in read-only data segment From: Roland McGrath <roland@xxxxxxxxxx> This changes the i386 linker script and the asm-generic macro it uses so that ELF note sections with SHF_ALLOC set are linked into the kernel image along with other read-only data. The PT_NOTE also points to their location. This paves the way for putting useful build-time information into ELF notes that can be found easily later in a kernel memory dump. 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> --- arch/i386/kernel/vmlinux.lds.S | 6 +++--- include/asm-generic/vmlinux.lds.h | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff -puN arch/i386/kernel/vmlinux.lds.S~i386-put-allocated-elf-notes-in-read-only-data-segment arch/i386/kernel/vmlinux.lds.S --- a/arch/i386/kernel/vmlinux.lds.S~i386-put-allocated-elf-notes-in-read-only-data-segment +++ a/arch/i386/kernel/vmlinux.lds.S @@ -60,7 +60,9 @@ SECTIONS __stop___ex_table = .; } - BUG_TABLE + NOTES :text :note + + BUG_TABLE :text . = ALIGN(4); .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { @@ -210,6 +212,4 @@ SECTIONS STABS_DEBUG DWARF_DEBUG - - NOTES } diff -puN include/asm-generic/vmlinux.lds.h~i386-put-allocated-elf-notes-in-read-only-data-segment include/asm-generic/vmlinux.lds.h --- a/include/asm-generic/vmlinux.lds.h~i386-put-allocated-elf-notes-in-read-only-data-segment +++ a/include/asm-generic/vmlinux.lds.h @@ -246,7 +246,11 @@ } #define NOTES \ - .notes : { *(.note.*) } :note + .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ + VMLINUX_SYMBOL(__start_notes) = .; \ + *(.note.*) \ + VMLINUX_SYMBOL(__stop_notes) = .; \ + } #define INITCALLS \ *(.initcall0.init) \ _ 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