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 | { | ||||
13 | . = 0x1000; | ||||
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 | |||||
Roman Zippel | fe6d9da | 2007-08-22 14:01:33 -0700 | [diff] [blame] | 24 | _etext = .; /* End of text section */ |
25 | |||||
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 26 | EXCEPTION_TABLE(16) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
Steven Rostedt | a2d063a | 2011-05-19 21:34:58 -0400 | [diff] [blame^] | 28 | _sdata = .; /* Start of data section */ |
29 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | RODATA |
31 | |||||
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 32 | RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 34 | BSS_SECTION(0, 0, 0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | |
36 | _edata = .; /* End of data section */ | ||||
37 | |||||
38 | /* will be freed after init */ | ||||
Cyrill Gorcunov | 97d26e7 | 2008-07-17 21:16:11 +0200 | [diff] [blame] | 39 | . = ALIGN(PAGE_SIZE); /* Init code and data */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | __init_begin = .; |
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 41 | INIT_TEXT_SECTION(PAGE_SIZE) :data |
42 | INIT_DATA_SECTION(16) | ||||
Roman Zippel | fbe9c96 | 2007-05-31 00:40:50 -0700 | [diff] [blame] | 43 | .m68k_fixup : { |
44 | __start_fixup = .; | ||||
45 | *(.m68k_fixup) | ||||
46 | __stop_fixup = .; | ||||
47 | } | ||||
Roman Zippel | 08a3db9 | 2008-10-13 21:58:50 +0200 | [diff] [blame] | 48 | NOTES |
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 49 | .init_end : { |
50 | /* This ALIGN be in a section so that _end is at the end of the | ||||
51 | load segment. */ | ||||
52 | . = ALIGN(PAGE_SIZE); | ||||
53 | __init_end = .; | ||||
54 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 55 | |
56 | _end = . ; | ||||
57 | |||||
Tim Abbott | 7c5fd56 | 2009-09-27 13:57:55 -0400 | [diff] [blame] | 58 | STABS_DEBUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | .comment 0 : { *(.comment) } |
Tejun Heo | 023bf6f | 2009-07-09 11:27:40 +0900 | [diff] [blame] | 60 | |
61 | /* Sections to be discarded */ | ||||
62 | DISCARDS | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | } |