x86, vmlinux.lds: fix relocatable symbols
[linux-2.6-block.git] / arch / x86 / boot / compressed / vmlinux.lds.S
CommitLineData
51b26ada
LT
1OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT)
2
3#ifdef CONFIG_X86_64
1ab60e0f
VG
4OUTPUT_ARCH(i386:x86-64)
5ENTRY(startup_64)
51b26ada
LT
6#else
7OUTPUT_ARCH(i386)
8ENTRY(startup_32)
9#endif
10
1ab60e0f
VG
11SECTIONS
12{
32ed937d 13 /* Be careful parts of head_64.S assume startup_32 is at
afe0bc63 14 * address 0.
1ab60e0f
VG
15 */
16 . = 0;
20514e9f 17 .text.head : {
1ab60e0f
VG
18 _head = . ;
19 *(.text.head)
20 _ehead = . ;
20514e9f
IC
21 }
22 .rodata.compressed : {
23 *(.rodata.compressed)
24 }
25 .text : {
1ab60e0f
VG
26 _text = .; /* Text */
27 *(.text)
28 *(.text.*)
29 _etext = . ;
30 }
31 .rodata : {
32 _rodata = . ;
33 *(.rodata) /* read-only data */
34 *(.rodata.*)
35 _erodata = . ;
36 }
37 .data : {
38 _data = . ;
39 *(.data)
40 *(.data.*)
41 _edata = . ;
42 }
43 .bss : {
44 _bss = . ;
45 *(.bss)
46 *(.bss.*)
47 *(COMMON)
51b26ada 48#ifdef CONFIG_X86_64
1ab60e0f 49 . = ALIGN(8);
4a9f54cf 50 _end_before_pgt = . ;
1ab60e0f
VG
51 . = ALIGN(4096);
52 pgtable = . ;
53 . = . + 4096 * 6;
51b26ada 54#endif
4a9f54cf 55 _ebss = .;
1ab60e0f
VG
56 }
57}