diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-04-29 03:47:18 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-29 04:20:29 -0400 |
commit | 17ce265d6a1789eae5eb739a3bb7fcffdb3e87c5 (patch) | |
tree | d6c514343dc5713042117c001b1cf38147789337 /arch/x86/kernel/vmlinux_32.lds.S | |
parent | aee6a166a5401dcfcb17fcdc055e5edf2a4f4042 (diff) |
x86, vmlinux.lds: unify header/footer
Merge everything except PHDRS and SECTIONS into
vmlinux.lds.S.
[ Impact: cleanup ]
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Tim Abbott <tabbott@MIT.EDU>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <1240991249-27117-2-git-send-email-sam@ravnborg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/vmlinux_32.lds.S')
-rw-r--r-- | arch/x86/kernel/vmlinux_32.lds.S | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/arch/x86/kernel/vmlinux_32.lds.S b/arch/x86/kernel/vmlinux_32.lds.S index fffa45a1036f..4c985fcd9ab4 100644 --- a/arch/x86/kernel/vmlinux_32.lds.S +++ b/arch/x86/kernel/vmlinux_32.lds.S | |||
@@ -1,26 +1,3 @@ | |||
1 | /* ld script to make i386 Linux kernel | ||
2 | * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>; | ||
3 | * | ||
4 | * Don't define absolute symbols until and unless you know that symbol | ||
5 | * value is should remain constant even if kernel image is relocated | ||
6 | * at run time. Absolute symbols are not relocated. If symbol value should | ||
7 | * change if kernel is relocated, make the symbol section relative and | ||
8 | * put it inside the section definition. | ||
9 | */ | ||
10 | |||
11 | #define LOAD_OFFSET __PAGE_OFFSET | ||
12 | |||
13 | #include <asm-generic/vmlinux.lds.h> | ||
14 | #include <asm/thread_info.h> | ||
15 | #include <asm/page_types.h> | ||
16 | #include <asm/cache.h> | ||
17 | #include <asm/boot.h> | ||
18 | |||
19 | OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") | ||
20 | OUTPUT_ARCH(i386) | ||
21 | ENTRY(phys_startup_32) | ||
22 | jiffies = jiffies_64; | ||
23 | |||
24 | PHDRS { | 1 | PHDRS { |
25 | text PT_LOAD FLAGS(5); /* R_E */ | 2 | text PT_LOAD FLAGS(5); /* R_E */ |
26 | data PT_LOAD FLAGS(7); /* RWE */ | 3 | data PT_LOAD FLAGS(7); /* RWE */ |
@@ -237,17 +214,3 @@ SECTIONS | |||
237 | STABS_DEBUG | 214 | STABS_DEBUG |
238 | DWARF_DEBUG | 215 | DWARF_DEBUG |
239 | } | 216 | } |
240 | |||
241 | /* | ||
242 | * Build-time check on the image size: | ||
243 | */ | ||
244 | ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE), | ||
245 | "kernel image bigger than KERNEL_IMAGE_SIZE") | ||
246 | |||
247 | #ifdef CONFIG_KEXEC | ||
248 | /* Link time checks */ | ||
249 | #include <asm/kexec.h> | ||
250 | |||
251 | ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE, | ||
252 | "kexec control code size is too big") | ||
253 | #endif | ||