diff options
author | Roland McGrath <roland@redhat.com> | 2007-07-19 04:48:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:47 -0400 |
commit | caf45dd92677b2001123cc06b5835052ccfee76f (patch) | |
tree | 70c97b9acc6b419a2965d8b621aeb8d41d668722 /arch/alpha/kernel/vmlinux.lds.S | |
parent | 2e1d5b8f24a887caded5ae3ceb2f341d4fbd1861 (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/alpha/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/alpha/kernel/vmlinux.lds.S | 5 |
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 @@ | |||
3 | OUTPUT_FORMAT("elf64-alpha") | 3 | OUTPUT_FORMAT("elf64-alpha") |
4 | OUTPUT_ARCH(alpha) | 4 | OUTPUT_ARCH(alpha) |
5 | ENTRY(__start) | 5 | ENTRY(__start) |
6 | PHDRS { kernel PT_LOAD ; } | 6 | PHDRS { kernel PT_LOAD; note PT_NOTE; } |
7 | jiffies = jiffies_64; | 7 | jiffies = jiffies_64; |
8 | SECTIONS | 8 | SECTIONS |
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 */ |