Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #include <asm-generic/vmlinux.lds.h> |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 2 | #include <asm/page.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
4 | OUTPUT_FORMAT("elf64-alpha") | ||||
5 | OUTPUT_ARCH(alpha) | ||||
6 | ENTRY(__start) | ||||
Roland McGrath | caf45dd | 2007-07-19 01:48:37 -0700 | [diff] [blame] | 7 | PHDRS { kernel PT_LOAD; note PT_NOTE; } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | jiffies = jiffies_64; |
9 | SECTIONS | ||||
10 | { | ||||
11 | #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS | ||||
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 12 | . = 0xfffffc0000310000; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #else |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 14 | . = 0xfffffc0001010000; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #endif |
16 | |||||
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 17 | _text = .; /* Text and read-only data */ |
18 | .text : { | ||||
Tim Abbott | 92ca523 | 2009-04-25 22:10:58 -0400 | [diff] [blame^] | 19 | HEAD_TEXT |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 20 | TEXT_TEXT |
21 | SCHED_TEXT | ||||
22 | LOCK_TEXT | ||||
23 | *(.fixup) | ||||
24 | *(.gnu.warning) | ||||
25 | } :kernel | ||||
26 | _etext = .; /* End of text section */ | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
Bastian Blank | 51597ac | 2008-07-04 10:00:00 -0700 | [diff] [blame] | 28 | NOTES :kernel :note |
29 | .dummy : { | ||||
30 | *(.dummy) | ||||
31 | } :kernel | ||||
32 | |||||
33 | RODATA | ||||
34 | |||||
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 35 | /* Exception table */ |
36 | . = ALIGN(16); | ||||
37 | __ex_table : { | ||||
38 | __start___ex_table = .; | ||||
39 | *(__ex_table) | ||||
40 | __stop___ex_table = .; | ||||
41 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 43 | /* Will be freed after init */ |
44 | . = ALIGN(PAGE_SIZE); | ||||
45 | /* Init code and data */ | ||||
46 | __init_begin = .; | ||||
47 | .init.text : { | ||||
48 | _sinittext = .; | ||||
Sam Ravnborg | 01ba2bd | 2008-01-20 14:15:03 +0100 | [diff] [blame] | 49 | INIT_TEXT |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 50 | _einittext = .; |
51 | } | ||||
52 | .init.data : { | ||||
Sam Ravnborg | 01ba2bd | 2008-01-20 14:15:03 +0100 | [diff] [blame] | 53 | INIT_DATA |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 54 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 55 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 56 | . = ALIGN(16); |
57 | .init.setup : { | ||||
58 | __setup_start = .; | ||||
59 | *(.init.setup) | ||||
60 | __setup_end = .; | ||||
61 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 63 | . = ALIGN(8); |
64 | .initcall.init : { | ||||
65 | __initcall_start = .; | ||||
66 | INITCALLS | ||||
67 | __initcall_end = .; | ||||
68 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 69 | |
Jean-Paul Saman | 67d3822 | 2007-02-10 01:44:44 -0800 | [diff] [blame] | 70 | #ifdef CONFIG_BLK_DEV_INITRD |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 71 | . = ALIGN(PAGE_SIZE); |
72 | .init.ramfs : { | ||||
73 | __initramfs_start = .; | ||||
74 | *(.init.ramfs) | ||||
75 | __initramfs_end = .; | ||||
76 | } | ||||
Jean-Paul Saman | 67d3822 | 2007-02-10 01:44:44 -0800 | [diff] [blame] | 77 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 79 | . = ALIGN(8); |
80 | .con_initcall.init : { | ||||
81 | __con_initcall_start = .; | ||||
82 | *(.con_initcall.init) | ||||
83 | __con_initcall_end = .; | ||||
84 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 85 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 86 | . = ALIGN(8); |
87 | SECURITY_INIT | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 88 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 89 | PERCPU(PAGE_SIZE) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 91 | . = ALIGN(2 * PAGE_SIZE); |
92 | __init_end = .; | ||||
93 | /* Freed after init ends here */ | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 94 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 95 | /* Note 2 page alignment above. */ |
96 | .data.init_thread : { | ||||
97 | *(.data.init_thread) | ||||
98 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 99 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 100 | . = ALIGN(PAGE_SIZE); |
101 | .data.page_aligned : { | ||||
102 | *(.data.page_aligned) | ||||
103 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 104 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 105 | . = ALIGN(64); |
106 | .data.cacheline_aligned : { | ||||
107 | *(.data.cacheline_aligned) | ||||
108 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 110 | _data = .; |
111 | /* Data */ | ||||
112 | .data : { | ||||
113 | DATA_DATA | ||||
114 | CONSTRUCTORS | ||||
115 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 116 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 117 | .got : { |
118 | *(.got) | ||||
119 | } | ||||
120 | .sdata : { | ||||
121 | *(.sdata) | ||||
122 | } | ||||
123 | _edata = .; /* End of data section */ | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 124 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 125 | __bss_start = .; |
126 | .sbss : { | ||||
127 | *(.sbss) | ||||
128 | *(.scommon) | ||||
129 | } | ||||
130 | .bss : { | ||||
131 | *(.bss) | ||||
132 | *(COMMON) | ||||
133 | } | ||||
134 | __bss_stop = .; | ||||
135 | _end = .; | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 136 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 137 | /* Sections to be discarded */ |
138 | /DISCARD/ : { | ||||
Sam Ravnborg | 01ba2bd | 2008-01-20 14:15:03 +0100 | [diff] [blame] | 139 | EXIT_TEXT |
140 | EXIT_DATA | ||||
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 141 | *(.exitcall.exit) |
142 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 143 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 144 | .mdebug 0 : { |
145 | *(.mdebug) | ||||
146 | } | ||||
147 | .note 0 : { | ||||
148 | *(.note) | ||||
149 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 150 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 151 | STABS_DEBUG |
152 | DWARF_DEBUG | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 153 | } |