aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/vmlinux.lds.S14
-rw-r--r--arch/x86/kernel/vmlinux_32.lds.S9
-rw-r--r--arch/x86/kernel/vmlinux_64.lds.S9
3 files changed, 14 insertions, 18 deletions
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
index 1a1b303a4272..845776fe5298 100644
--- a/arch/x86/kernel/vmlinux.lds.S
+++ b/arch/x86/kernel/vmlinux.lds.S
@@ -54,12 +54,26 @@ PHDRS {
54 note PT_NOTE FLAGS(0); /* ___ */ 54 note PT_NOTE FLAGS(0); /* ___ */
55} 55}
56 56
57SECTIONS
58{
59#ifdef CONFIG_X86_32
60 . = LOAD_OFFSET + LOAD_PHYSICAL_ADDR;
61 phys_startup_32 = startup_32 - LOAD_OFFSET;
62#else
63 . = __START_KERNEL;
64 phys_startup_64 = startup_64 - LOAD_OFFSET;
65#endif
66
57#ifdef CONFIG_X86_32 67#ifdef CONFIG_X86_32
58# include "vmlinux_32.lds.S" 68# include "vmlinux_32.lds.S"
59#else 69#else
60# include "vmlinux_64.lds.S" 70# include "vmlinux_64.lds.S"
61#endif 71#endif
62 72
73 STABS_DEBUG
74 DWARF_DEBUG
75}
76
63 77
64#ifdef CONFIG_X86_32 78#ifdef CONFIG_X86_32
65ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE), 79ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE),
diff --git a/arch/x86/kernel/vmlinux_32.lds.S b/arch/x86/kernel/vmlinux_32.lds.S
index 4fd40dc50172..3d3d49c31b0e 100644
--- a/arch/x86/kernel/vmlinux_32.lds.S
+++ b/arch/x86/kernel/vmlinux_32.lds.S
@@ -1,8 +1,3 @@
1SECTIONS
2{
3 . = LOAD_OFFSET + LOAD_PHYSICAL_ADDR;
4 phys_startup_32 = startup_32 - LOAD_OFFSET;
5
6 /* Text and read-only data */ 1 /* Text and read-only data */
7 .text.head : AT(ADDR(.text.head) - LOAD_OFFSET) { 2 .text.head : AT(ADDR(.text.head) - LOAD_OFFSET) {
8 _text = .; 3 _text = .;
@@ -205,7 +200,3 @@ SECTIONS
205 *(.exitcall.exit) 200 *(.exitcall.exit)
206 *(.discard) 201 *(.discard)
207 } 202 }
208
209 STABS_DEBUG
210 DWARF_DEBUG
211}
diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S
index 6e7cbee0e87f..2d7fa2016c31 100644
--- a/arch/x86/kernel/vmlinux_64.lds.S
+++ b/arch/x86/kernel/vmlinux_64.lds.S
@@ -1,8 +1,3 @@
1SECTIONS
2{
3 . = __START_KERNEL;
4 phys_startup_64 = startup_64 - LOAD_OFFSET;
5
6 /* Text and read-only data */ 1 /* Text and read-only data */
7 .text : AT(ADDR(.text) - LOAD_OFFSET) { 2 .text : AT(ADDR(.text) - LOAD_OFFSET) {
8 _text = .; 3 _text = .;
@@ -277,7 +272,3 @@ SECTIONS
277 *(.eh_frame) 272 *(.eh_frame)
278 *(.discard) 273 *(.discard)
279 } 274 }
280
281 STABS_DEBUG
282 DWARF_DEBUG
283}