aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-29 06:56:58 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-29 07:01:18 -0400
commitfd0731944333db6e9e91b6954c6ef95f4b71ab04 (patch)
tree81e2e58f2d00157ff5f37beb1c34effdb258f8d8 /arch
parent91fd7fe809bdf4d8aa56559d17b9f25a1a6fe732 (diff)
x86, vmlinux.lds: fix relocatable symbols
__init_begin/_end symbols should be inside sections as well, otherwise the relocatable kernel gets confused when freeing init sections in the wrong place. [ Impact: fix bootup crash ] Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Tim Abbott <tabbott@MIT.EDU> Cc: Linus Torvalds <torvalds@linux-foundation.org> LKML-Reference: <20090429105056.GA28720@uranus.ravnborg.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/vmlinux.lds.S7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
index 0bdbaa579696..4c85b2e2bb65 100644
--- a/arch/x86/kernel/vmlinux.lds.S
+++ b/arch/x86/kernel/vmlinux.lds.S
@@ -255,8 +255,8 @@ SECTIONS
255 255
256 /* Init code and data - will be freed after init */ 256 /* Init code and data - will be freed after init */
257 . = ALIGN(PAGE_SIZE); 257 . = ALIGN(PAGE_SIZE);
258 __init_begin = .; /* paired with __init_end */
259 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) { 258 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) {
259 __init_begin = .; /* paired with __init_end */
260 _sinittext = .; 260 _sinittext = .;
261 INIT_TEXT 261 INIT_TEXT
262 _einittext = .; 262 _einittext = .;
@@ -346,8 +346,11 @@ SECTIONS
346#endif 346#endif
347 347
348 . = ALIGN(PAGE_SIZE); 348 . = ALIGN(PAGE_SIZE);
349
349 /* freed after init ends here */ 350 /* freed after init ends here */
350 __init_end = .; 351 .init.end : AT(ADDR(.init.end) - LOAD_OFFSET) {
352 __init_end = .;
353 }
351 354
352#ifdef CONFIG_X86_64 355#ifdef CONFIG_X86_64
353 .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { 356 .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) {