x86, setup: Only set early_serial_base after port is initialized
[linux-2.6-block.git] / arch / x86 / boot / compressed / vmlinux.lds.S
CommitLineData
1dc818c1
TA
1#include <asm-generic/vmlinux.lds.h>
2
51b26ada
LT
3OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT)
4
83c48326
SR
5#undef i386
6
350f8f56 7#include <asm/cache.h>
5b11f1ce
PA
8#include <asm/page_types.h>
9
51b26ada 10#ifdef CONFIG_X86_64
1ab60e0f
VG
11OUTPUT_ARCH(i386:x86-64)
12ENTRY(startup_64)
51b26ada
LT
13#else
14OUTPUT_ARCH(i386)
15ENTRY(startup_32)
16#endif
17
1ab60e0f
VG
18SECTIONS
19{
32ed937d 20 /* Be careful parts of head_64.S assume startup_32 is at
afe0bc63 21 * address 0.
1ab60e0f
VG
22 */
23 . = 0;
1dc818c1 24 .head.text : {
1ab60e0f 25 _head = . ;
1dc818c1 26 HEAD_TEXT
1ab60e0f 27 _ehead = . ;
20514e9f 28 }
041d5f94
DV
29 .rodata..compressed : {
30 *(.rodata..compressed)
20514e9f
IC
31 }
32 .text : {
1ab60e0f
VG
33 _text = .; /* Text */
34 *(.text)
35 *(.text.*)
36 _etext = . ;
37 }
38 .rodata : {
39 _rodata = . ;
40 *(.rodata) /* read-only data */
41 *(.rodata.*)
42 _erodata = . ;
43 }
44 .data : {
45 _data = . ;
46 *(.data)
47 *(.data.*)
48 _edata = . ;
49 }
350f8f56 50 . = ALIGN(L1_CACHE_BYTES);
1ab60e0f
VG
51 .bss : {
52 _bss = . ;
53 *(.bss)
54 *(.bss.*)
55 *(COMMON)
5b11f1ce 56 . = ALIGN(8); /* For convenience during zeroing */
4a9f54cf 57 _ebss = .;
1ab60e0f 58 }
5b11f1ce
PA
59#ifdef CONFIG_X86_64
60 . = ALIGN(PAGE_SIZE);
61 .pgtable : {
62 _pgtable = . ;
63 *(.pgtable)
64 _epgtable = . ;
65 }
66#endif
67 _end = .;
1ab60e0f 68}