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