Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* ld script to make m68k Linux kernel */ |
2 | |||||
3 | #include <asm-generic/vmlinux.lds.h> | ||||
Cyrill Gorcunov | 97d26e7 | 2008-07-17 21:16:11 +0200 | [diff] [blame] | 4 | #include <asm/page.h> |
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 5 | #include <asm/thread_info.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
7 | OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k") | ||||
8 | OUTPUT_ARCH(m68k) | ||||
9 | ENTRY(_start) | ||||
10 | jiffies = jiffies_64 + 4; | ||||
11 | SECTIONS | ||||
12 | { | ||||
Sam Creasey | a3a79bd | 2006-12-09 10:34:38 +0100 | [diff] [blame] | 13 | . = 0xE002000; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | _text = .; /* Text and read-only data */ |
15 | .text : { | ||||
Tim Abbott | 6f335ca | 2009-04-25 22:11:03 -0400 | [diff] [blame] | 16 | HEAD_TEXT |
Sam Ravnborg | 7664709 | 2007-05-13 00:31:33 +0200 | [diff] [blame] | 17 | TEXT_TEXT |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | SCHED_TEXT |
Al Viro | 198a410 | 2006-01-12 01:06:11 -0800 | [diff] [blame] | 19 | LOCK_TEXT |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | *(.fixup) |
21 | *(.gnu.warning) | ||||
22 | } :text = 0x4e75 | ||||
23 | RODATA | ||||
24 | |||||
25 | _etext = .; /* End of text section */ | ||||
26 | |||||
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 27 | EXCEPTION_TABLE(16) :data |
Steven Rostedt | a2d063a | 2011-05-19 21:34:58 -0400 | [diff] [blame] | 28 | _sdata = .; /* Start of rw data section */ |
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 29 | RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) :data |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | /* End of data goes *here* so that freeing init code works properly. */ |
31 | _edata = .; | ||||
Al Viro | 877d524 | 2009-01-05 17:28:10 +0000 | [diff] [blame] | 32 | NOTES |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
34 | /* will be freed after init */ | ||||
Cyrill Gorcunov | 97d26e7 | 2008-07-17 21:16:11 +0200 | [diff] [blame] | 35 | . = ALIGN(PAGE_SIZE); /* Init code and data */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | __init_begin = .; |
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 37 | INIT_TEXT_SECTION(PAGE_SIZE) |
38 | INIT_DATA_SECTION(16) | ||||
Roman Zippel | fbe9c96 | 2007-05-31 00:40:50 -0700 | [diff] [blame] | 39 | .m68k_fixup : { |
40 | __start_fixup = .; | ||||
41 | *(.m68k_fixup) | ||||
42 | __stop_fixup = .; | ||||
43 | } | ||||
Cyrill Gorcunov | 97d26e7 | 2008-07-17 21:16:11 +0200 | [diff] [blame] | 44 | . = ALIGN(PAGE_SIZE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | __init_end = .; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | |
Greg Ungerer | e87c09a | 2011-10-13 16:59:55 +1000 | [diff] [blame] | 47 | _sbss = .; |
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 48 | BSS_SECTION(0, 0, 0) |
Greg Ungerer | e87c09a | 2011-10-13 16:59:55 +1000 | [diff] [blame] | 49 | _ebss = .; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | |
51 | _end = . ; | ||||
52 | |||||
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 53 | STABS_DEBUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | |
Tejun Heo | 023bf6f | 2009-07-09 11:27:40 +0900 | [diff] [blame] | 55 | /* Sections to be discarded */ |
56 | DISCARDS | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | } |