From: Roland McGrath Date: Thu, 19 Jul 2007 08:48:39 +0000 (-0700) Subject: s390: Put allocated ELF notes in read-only data segment X-Git-Tag: v2.6.23-rc1~390 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=86ead9caf9a9f265f6065c46080d046230e25d78;p=safe%2Fjmp%2Flinux-2.6 s390: Put allocated ELF notes in read-only data segment This changes the s390 linker script to use the asm-generic NOTES macro 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 Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index 61ffd50..6ab7d4e 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S @@ -45,6 +45,8 @@ SECTIONS __ex_table : { *(__ex_table) } __stop___ex_table = .; + NOTES + BUG_TABLE .data : { /* Data */