diff options
-rw-r--r-- | arch/x86/kernel/vmlinux.lds.S | 7 |
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) { |