From: Linus Torvalds Date: Mon, 14 Jul 2008 22:28:10 +0000 (-0700) Subject: Merge branch 'core/rodata' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d18bb9a548e550f3ced57618e75085fb3f173133;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Merge branch 'core/rodata' of git://git./linux/kernel/git/tip/linux-2.6-tip * 'core/rodata' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: move BUG_TABLE into RODATA --- d18bb9a548e550f3ced57618e75085fb3f173133 diff --cc arch/x86/kernel/vmlinux_32.lds.S index 2674f5796275,aa0855471c79..cdb2363697d2 --- a/arch/x86/kernel/vmlinux_32.lds.S +++ b/arch/x86/kernel/vmlinux_32.lds.S @@@ -54,12 -56,15 +56,8 @@@ SECTION __start___ex_table = .; *(__ex_table) __stop___ex_table = .; - } - - NOTES :text :note - - BUG_TABLE :text + } :text = 0x9090 - . = ALIGN(4); - .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { - __tracedata_start = .; - *(.tracedata) - __tracedata_end = .; - } - RODATA /* writeable */ diff --cc include/asm-generic/vmlinux.lds.h index f1992dc5c424,dd2cc8122ad8..bf2851f93937 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@@ -319,19 -320,10 +322,22 @@@ *(__bug_table) \ __stop___bug_table = .; \ } + #else + #define BUG_TABLE + #endif +#ifdef CONFIG_PM_TRACE +#define TRACEDATA \ + . = ALIGN(4); \ + .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { \ + __tracedata_start = .; \ + *(.tracedata) \ + __tracedata_end = .; \ + } +#else +#define TRACEDATA +#endif + #define NOTES \ .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ VMLINUX_SYMBOL(__start_notes) = .; \