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