Linus Torvalds | 51b26ad | 2009-04-26 10:12:47 -0700 | [diff] [blame] | 1 | OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT) |
2 | |||||
Sam Ravnborg | 83c4832 | 2009-04-30 12:03:16 +0200 | [diff] [blame^] | 3 | #undef i386 |
4 | |||||
Linus Torvalds | 51b26ad | 2009-04-26 10:12:47 -0700 | [diff] [blame] | 5 | #ifdef CONFIG_X86_64 |
Vivek Goyal | 1ab60e0 | 2007-05-02 19:27:07 +0200 | [diff] [blame] | 6 | OUTPUT_ARCH(i386:x86-64) |
7 | ENTRY(startup_64) | ||||
Linus Torvalds | 51b26ad | 2009-04-26 10:12:47 -0700 | [diff] [blame] | 8 | #else |
9 | OUTPUT_ARCH(i386) | ||||
10 | ENTRY(startup_32) | ||||
11 | #endif | ||||
12 | |||||
Vivek Goyal | 1ab60e0 | 2007-05-02 19:27:07 +0200 | [diff] [blame] | 13 | SECTIONS |
14 | { | ||||
Yinghai Lu | 32ed937 | 2008-02-01 17:49:41 +0100 | [diff] [blame] | 15 | /* Be careful parts of head_64.S assume startup_32 is at |
Ian Campbell | afe0bc6 | 2008-01-30 13:33:37 +0100 | [diff] [blame] | 16 | * address 0. |
Vivek Goyal | 1ab60e0 | 2007-05-02 19:27:07 +0200 | [diff] [blame] | 17 | */ |
18 | . = 0; | ||||
Ian Campbell | 20514e9 | 2008-01-30 13:33:38 +0100 | [diff] [blame] | 19 | .text.head : { |
Vivek Goyal | 1ab60e0 | 2007-05-02 19:27:07 +0200 | [diff] [blame] | 20 | _head = . ; |
21 | *(.text.head) | ||||
22 | _ehead = . ; | ||||
Ian Campbell | 20514e9 | 2008-01-30 13:33:38 +0100 | [diff] [blame] | 23 | } |
24 | .rodata.compressed : { | ||||
25 | *(.rodata.compressed) | ||||
26 | } | ||||
27 | .text : { | ||||
Vivek Goyal | 1ab60e0 | 2007-05-02 19:27:07 +0200 | [diff] [blame] | 28 | _text = .; /* Text */ |
29 | *(.text) | ||||
30 | *(.text.*) | ||||
31 | _etext = . ; | ||||
32 | } | ||||
33 | .rodata : { | ||||
34 | _rodata = . ; | ||||
35 | *(.rodata) /* read-only data */ | ||||
36 | *(.rodata.*) | ||||
37 | _erodata = . ; | ||||
38 | } | ||||
39 | .data : { | ||||
40 | _data = . ; | ||||
41 | *(.data) | ||||
42 | *(.data.*) | ||||
43 | _edata = . ; | ||||
44 | } | ||||
45 | .bss : { | ||||
46 | _bss = . ; | ||||
47 | *(.bss) | ||||
48 | *(.bss.*) | ||||
49 | *(COMMON) | ||||
Linus Torvalds | 51b26ad | 2009-04-26 10:12:47 -0700 | [diff] [blame] | 50 | #ifdef CONFIG_X86_64 |
Vivek Goyal | 1ab60e0 | 2007-05-02 19:27:07 +0200 | [diff] [blame] | 51 | . = ALIGN(8); |
Yinghai Lu | 4a9f54c | 2008-04-10 15:06:38 -0700 | [diff] [blame] | 52 | _end_before_pgt = . ; |
Vivek Goyal | 1ab60e0 | 2007-05-02 19:27:07 +0200 | [diff] [blame] | 53 | . = ALIGN(4096); |
54 | pgtable = . ; | ||||
55 | . = . + 4096 * 6; | ||||
Linus Torvalds | 51b26ad | 2009-04-26 10:12:47 -0700 | [diff] [blame] | 56 | #endif |
Yinghai Lu | 4a9f54c | 2008-04-10 15:06:38 -0700 | [diff] [blame] | 57 | _ebss = .; |
Vivek Goyal | 1ab60e0 | 2007-05-02 19:27:07 +0200 | [diff] [blame] | 58 | } |
59 | } |