aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-07-19 04:48:37 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:04:47 -0400
commitcaf45dd92677b2001123cc06b5835052ccfee76f (patch)
tree70c97b9acc6b419a2965d8b621aeb8d41d668722 /arch
parent2e1d5b8f24a887caded5ae3ceb2f341d4fbd1861 (diff)
alpha: Put allocated ELF notes in read-only data segment
This changes the alpha 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: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/alpha/kernel/vmlinux.lds.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/alpha/kernel/vmlinux.lds.S b/arch/alpha/kernel/vmlinux.lds.S
index 6f4f0378e708..fe13daa5cb2c 100644
--- a/arch/alpha/kernel/vmlinux.lds.S
+++ b/arch/alpha/kernel/vmlinux.lds.S
@@ -3,7 +3,7 @@
3OUTPUT_FORMAT("elf64-alpha") 3OUTPUT_FORMAT("elf64-alpha")
4OUTPUT_ARCH(alpha) 4OUTPUT_ARCH(alpha)
5ENTRY(__start) 5ENTRY(__start)
6PHDRS { kernel PT_LOAD ; } 6PHDRS { kernel PT_LOAD; note PT_NOTE; }
7jiffies = jiffies_64; 7jiffies = jiffies_64;
8SECTIONS 8SECTIONS
9{ 9{
@@ -28,6 +28,9 @@ SECTIONS
28 __ex_table : { *(__ex_table) } 28 __ex_table : { *(__ex_table) }
29 __stop___ex_table = .; 29 __stop___ex_table = .;
30 30
31 NOTES :kernel :note
32 .dummy : { *(.dummy) } :kernel
33
31 RODATA 34 RODATA
32 35
33 /* Will be freed after init */ 36 /* Will be freed after init */