Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #include <asm-generic/vmlinux.lds.h> |
Sam Ravnborg | de078ef | 2009-09-25 19:53:43 +0200 | [diff] [blame] | 3 | #include <asm/thread_info.h> |
Tejun Heo | 0f06c06 | 2011-01-25 14:27:38 +0100 | [diff] [blame] | 4 | #include <asm/cache.h> |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 5 | #include <asm/page.h> |
David Howells | ec22120 | 2012-03-28 18:11:12 +0100 | [diff] [blame] | 6 | #include <asm/setup.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
8 | OUTPUT_FORMAT("elf64-alpha") | ||||
9 | OUTPUT_ARCH(alpha) | ||||
10 | ENTRY(__start) | ||||
Roland McGrath | caf45dd | 2007-07-19 01:48:37 -0700 | [diff] [blame] | 11 | PHDRS { kernel PT_LOAD; note PT_NOTE; } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | jiffies = jiffies_64; |
13 | SECTIONS | ||||
14 | { | ||||
15 | #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS | ||||
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 16 | . = 0xfffffc0000310000; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #else |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 18 | . = 0xfffffc0001010000; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #endif |
20 | |||||
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 21 | _text = .; /* Text and read-only data */ |
22 | .text : { | ||||
Tim Abbott | 92ca523 | 2009-04-25 22:10:58 -0400 | [diff] [blame] | 23 | HEAD_TEXT |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 24 | TEXT_TEXT |
25 | SCHED_TEXT | ||||
Chris Metcalf | 6727ad9 | 2016-10-07 17:02:55 -0700 | [diff] [blame] | 26 | CPUIDLE_TEXT |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 27 | LOCK_TEXT |
28 | *(.fixup) | ||||
29 | *(.gnu.warning) | ||||
30 | } :kernel | ||||
David Howells | ec22120 | 2012-03-28 18:11:12 +0100 | [diff] [blame] | 31 | swapper_pg_dir = SWAPPER_PGD; |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 32 | _etext = .; /* End of text section */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
Bastian Blank | 51597ac | 2008-07-04 10:00:00 -0700 | [diff] [blame] | 34 | NOTES :kernel :note |
35 | .dummy : { | ||||
36 | *(.dummy) | ||||
37 | } :kernel | ||||
38 | |||||
39 | RODATA | ||||
Geoffrey Thomas | 9d93f00 | 2009-09-24 10:36:26 -0400 | [diff] [blame] | 40 | EXCEPTION_TABLE(16) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 42 | /* Will be freed after init */ |
Geoffrey Thomas | 9d93f00 | 2009-09-24 10:36:26 -0400 | [diff] [blame] | 43 | __init_begin = ALIGN(PAGE_SIZE); |
44 | INIT_TEXT_SECTION(PAGE_SIZE) | ||||
45 | INIT_DATA_SECTION(16) | ||||
Tejun Heo | 0415b00d1 | 2011-03-24 18:50:09 +0100 | [diff] [blame] | 46 | PERCPU_SECTION(L1_CACHE_BYTES) |
Geoffrey Thomas | 9d93f00 | 2009-09-24 10:36:26 -0400 | [diff] [blame] | 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); | ||||
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 50 | __init_end = .; |
51 | /* Freed after init ends here */ | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | |
Steven Rostedt | a2d063a | 2011-05-19 21:34:58 -0400 | [diff] [blame] | 53 | _sdata = .; /* Start of rw data section */ |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 54 | _data = .; |
Tejun Heo | 0f06c06 | 2011-01-25 14:27:38 +0100 | [diff] [blame] | 55 | RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 56 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 57 | .got : { |
58 | *(.got) | ||||
59 | } | ||||
60 | .sdata : { | ||||
61 | *(.sdata) | ||||
62 | } | ||||
63 | _edata = .; /* End of data section */ | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 64 | |
Geoffrey Thomas | 9d93f00 | 2009-09-24 10:36:26 -0400 | [diff] [blame] | 65 | BSS_SECTION(0, 0, 0) |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 66 | _end = .; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 68 | .mdebug 0 : { |
69 | *(.mdebug) | ||||
70 | } | ||||
71 | .note 0 : { | ||||
72 | *(.note) | ||||
73 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 74 | |
Sam Ravnborg | b2b5d37 | 2007-10-16 01:26:35 -0700 | [diff] [blame] | 75 | STABS_DEBUG |
76 | DWARF_DEBUG | ||||
Tejun Heo | 023bf6f | 2009-07-09 11:27:40 +0900 | [diff] [blame] | 77 | |
78 | DISCARDS | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | } |