]> err.no Git - linux-2.6/commit
powerpc: Put allocated ELF notes in read-only data segment
authorRoland McGrath <roland@redhat.com>
Thu, 19 Jul 2007 08:48:38 +0000 (01:48 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:47 +0000 (10:04 -0700)
commit8fb775ee582999ea45503f0c4e9393c2df065a81
treecb30f9d57cd4a988ba89fd00c848949506c27e22
parentcaf45dd92677b2001123cc06b5835052ccfee76f
powerpc: Put allocated ELF notes in read-only data segment

This changes the powerpc 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 <roland@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/kernel/vmlinux.lds.S