diff options
author | Jan Beulich <jbeulich@novell.com> | 2008-05-12 09:44:41 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 01:09:47 -0400 |
commit | 63687a528c39a67c1a213cdffa09feb0e6af9dbe (patch) | |
tree | 0a21067f84d2495d37cc6fe864675db53ca56630 /include/asm-generic/vmlinux.lds.h | |
parent | 75d3bce2fc0a80f435fe12f2c9ed2632c8ac29e4 (diff) |
x86: move tracedata to RODATA
.. allowing it to be write-protected just as other read-only data
under CONFIG_DEBUG_RODATA.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index f054778e916c..f1992dc5c424 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -93,6 +93,8 @@ | |||
93 | VMLINUX_SYMBOL(__end_rio_route_ops) = .; \ | 93 | VMLINUX_SYMBOL(__end_rio_route_ops) = .; \ |
94 | } \ | 94 | } \ |
95 | \ | 95 | \ |
96 | TRACEDATA \ | ||
97 | \ | ||
96 | /* Kernel symbol table: Normal symbols */ \ | 98 | /* Kernel symbol table: Normal symbols */ \ |
97 | __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \ | 99 | __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \ |
98 | VMLINUX_SYMBOL(__start___ksymtab) = .; \ | 100 | VMLINUX_SYMBOL(__start___ksymtab) = .; \ |
@@ -318,6 +320,18 @@ | |||
318 | __stop___bug_table = .; \ | 320 | __stop___bug_table = .; \ |
319 | } | 321 | } |
320 | 322 | ||
323 | #ifdef CONFIG_PM_TRACE | ||
324 | #define TRACEDATA \ | ||
325 | . = ALIGN(4); \ | ||
326 | .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { \ | ||
327 | __tracedata_start = .; \ | ||
328 | *(.tracedata) \ | ||
329 | __tracedata_end = .; \ | ||
330 | } | ||
331 | #else | ||
332 | #define TRACEDATA | ||
333 | #endif | ||
334 | |||
321 | #define NOTES \ | 335 | #define NOTES \ |
322 | .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ | 336 | .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ |
323 | VMLINUX_SYMBOL(__start_notes) = .; \ | 337 | VMLINUX_SYMBOL(__start_notes) = .; \ |