diff options
Diffstat (limited to 'arch/x86/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/x86/kernel/vmlinux.lds.S | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index b600c843710b..bbf4fd044d07 100644 --- a/arch/x86/kernel/vmlinux.lds.S +++ b/arch/x86/kernel/vmlinux.lds.S | |||
@@ -112,11 +112,6 @@ SECTIONS | |||
112 | _sdata = .; | 112 | _sdata = .; |
113 | DATA_DATA | 113 | DATA_DATA |
114 | CONSTRUCTORS | 114 | CONSTRUCTORS |
115 | |||
116 | #ifdef CONFIG_X86_64 | ||
117 | /* End of data section */ | ||
118 | _edata = .; | ||
119 | #endif | ||
120 | } :data | 115 | } :data |
121 | 116 | ||
122 | #ifdef CONFIG_X86_32 | 117 | #ifdef CONFIG_X86_32 |
@@ -156,10 +151,8 @@ SECTIONS | |||
156 | .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { | 151 | .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { |
157 | *(.data.read_mostly) | 152 | *(.data.read_mostly) |
158 | 153 | ||
159 | #ifdef CONFIG_X86_32 | ||
160 | /* End of data section */ | 154 | /* End of data section */ |
161 | _edata = .; | 155 | _edata = .; |
162 | #endif | ||
163 | } | 156 | } |
164 | 157 | ||
165 | #ifdef CONFIG_X86_64 | 158 | #ifdef CONFIG_X86_64 |
@@ -397,8 +390,8 @@ SECTIONS | |||
397 | 390 | ||
398 | 391 | ||
399 | #ifdef CONFIG_X86_32 | 392 | #ifdef CONFIG_X86_32 |
400 | ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE), | 393 | . = ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE), |
401 | "kernel image bigger than KERNEL_IMAGE_SIZE") | 394 | "kernel image bigger than KERNEL_IMAGE_SIZE"); |
402 | #else | 395 | #else |
403 | /* | 396 | /* |
404 | * Per-cpu symbols which need to be offset from __per_cpu_load | 397 | * Per-cpu symbols which need to be offset from __per_cpu_load |
@@ -411,12 +404,12 @@ INIT_PER_CPU(irq_stack_union); | |||
411 | /* | 404 | /* |
412 | * Build-time check on the image size: | 405 | * Build-time check on the image size: |
413 | */ | 406 | */ |
414 | ASSERT((_end - _text <= KERNEL_IMAGE_SIZE), | 407 | . = ASSERT((_end - _text <= KERNEL_IMAGE_SIZE), |
415 | "kernel image bigger than KERNEL_IMAGE_SIZE") | 408 | "kernel image bigger than KERNEL_IMAGE_SIZE"); |
416 | 409 | ||
417 | #ifdef CONFIG_SMP | 410 | #ifdef CONFIG_SMP |
418 | ASSERT((per_cpu__irq_stack_union == 0), | 411 | . = ASSERT((per_cpu__irq_stack_union == 0), |
419 | "irq_stack_union is not at start of per-cpu area"); | 412 | "irq_stack_union is not at start of per-cpu area"); |
420 | #endif | 413 | #endif |
421 | 414 | ||
422 | #endif /* CONFIG_X86_32 */ | 415 | #endif /* CONFIG_X86_32 */ |
@@ -424,7 +417,7 @@ ASSERT((per_cpu__irq_stack_union == 0), | |||
424 | #ifdef CONFIG_KEXEC | 417 | #ifdef CONFIG_KEXEC |
425 | #include <asm/kexec.h> | 418 | #include <asm/kexec.h> |
426 | 419 | ||
427 | ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE, | 420 | . = ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE, |
428 | "kexec control code size is too big") | 421 | "kexec control code size is too big"); |
429 | #endif | 422 | #endif |
430 | 423 | ||