]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | #include <asm-generic/vmlinux.lds.h> |
de078ef5 | 2 | #include <asm/thread_info.h> |
0f06c063 | 3 | #include <asm/cache.h> |
b2b5d37d | 4 | #include <asm/page.h> |
1da177e4 LT |
5 | |
6 | OUTPUT_FORMAT("elf64-alpha") | |
7 | OUTPUT_ARCH(alpha) | |
8 | ENTRY(__start) | |
caf45dd9 | 9 | PHDRS { kernel PT_LOAD; note PT_NOTE; } |
1da177e4 LT |
10 | jiffies = jiffies_64; |
11 | SECTIONS | |
12 | { | |
13 | #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS | |
b2b5d37d | 14 | . = 0xfffffc0000310000; |
1da177e4 | 15 | #else |
b2b5d37d | 16 | . = 0xfffffc0001010000; |
1da177e4 LT |
17 | #endif |
18 | ||
b2b5d37d SR |
19 | _text = .; /* Text and read-only data */ |
20 | .text : { | |
92ca5234 | 21 | HEAD_TEXT |
b2b5d37d SR |
22 | TEXT_TEXT |
23 | SCHED_TEXT | |
24 | LOCK_TEXT | |
25 | *(.fixup) | |
26 | *(.gnu.warning) | |
27 | } :kernel | |
28 | _etext = .; /* End of text section */ | |
29 | ||
51597acf BB |
30 | NOTES :kernel :note |
31 | .dummy : { | |
32 | *(.dummy) | |
33 | } :kernel | |
34 | ||
35 | RODATA | |
9d93f005 | 36 | EXCEPTION_TABLE(16) |
b2b5d37d | 37 | |
b2b5d37d | 38 | /* Will be freed after init */ |
9d93f005 GT |
39 | __init_begin = ALIGN(PAGE_SIZE); |
40 | INIT_TEXT_SECTION(PAGE_SIZE) | |
41 | INIT_DATA_SECTION(16) | |
0415b00d | 42 | PERCPU_SECTION(L1_CACHE_BYTES) |
9d93f005 GT |
43 | /* Align to THREAD_SIZE rather than PAGE_SIZE here so any padding page |
44 | needed for the THREAD_SIZE aligned init_task gets freed after init */ | |
45 | . = ALIGN(THREAD_SIZE); | |
b2b5d37d SR |
46 | __init_end = .; |
47 | /* Freed after init ends here */ | |
48 | ||
a2d063ac | 49 | _sdata = .; /* Start of rw data section */ |
b2b5d37d | 50 | _data = .; |
0f06c063 | 51 | RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) |
b2b5d37d SR |
52 | |
53 | .got : { | |
54 | *(.got) | |
55 | } | |
56 | .sdata : { | |
57 | *(.sdata) | |
58 | } | |
59 | _edata = .; /* End of data section */ | |
60 | ||
9d93f005 | 61 | BSS_SECTION(0, 0, 0) |
b2b5d37d SR |
62 | _end = .; |
63 | ||
b2b5d37d SR |
64 | .mdebug 0 : { |
65 | *(.mdebug) | |
66 | } | |
67 | .note 0 : { | |
68 | *(.note) | |
69 | } | |
70 | ||
71 | STABS_DEBUG | |
72 | DWARF_DEBUG | |
023bf6f1 TH |
73 | |
74 | DISCARDS | |
1da177e4 | 75 | } |