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 |
28 | RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) :data | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | /* End of data goes *here* so that freeing init code works properly. */ |
30 | _edata = .; | ||||
Al Viro | 877d524 | 2009-01-05 17:28:10 +0000 | [diff] [blame] | 31 | NOTES |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
33 | /* will be freed after init */ | ||||
Cyrill Gorcunov | 97d26e7 | 2008-07-17 21:16:11 +0200 | [diff] [blame] | 34 | . = ALIGN(PAGE_SIZE); /* Init code and data */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | __init_begin = .; |
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 36 | INIT_TEXT_SECTION(PAGE_SIZE) |
37 | INIT_DATA_SECTION(16) | ||||
Roman Zippel | fbe9c96 | 2007-05-31 00:40:50 -0700 | [diff] [blame] | 38 | .m68k_fixup : { |
39 | __start_fixup = .; | ||||
40 | *(.m68k_fixup) | ||||
41 | __stop_fixup = .; | ||||
42 | } | ||||
Cyrill Gorcunov | 97d26e7 | 2008-07-17 21:16:11 +0200 | [diff] [blame] | 43 | . = ALIGN(PAGE_SIZE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | __init_end = .; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | |
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 46 | BSS_SECTION(0, 0, 0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | |
48 | _end = . ; | ||||
49 | |||||
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 50 | STABS_DEBUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | |
Tejun Heo | 023bf6f | 2009-07-09 11:27:40 +0900 | [diff] [blame] | 52 | /* Sections to be discarded */ |
53 | DISCARDS | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | } |