blob: 47eac19e8f61d68c7ecbd26de4704e133e213852 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* ld script to make m68k Linux kernel */
2
3#include <asm-generic/vmlinux.lds.h>
Cyrill Gorcunov97d26e72008-07-17 21:16:11 +02004#include <asm/page.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
6OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
7OUTPUT_ARCH(m68k)
8ENTRY(_start)
9jiffies = jiffies_64 + 4;
10SECTIONS
11{
12 . = 0x1000;
13 _text = .; /* Text and read-only data */
14 .text : {
Tim Abbott6f335ca2009-04-25 22:11:03 -040015 HEAD_TEXT
Sam Ravnborg76647092007-05-13 00:31:33 +020016 TEXT_TEXT
Linus Torvalds1da177e2005-04-16 15:20:36 -070017 SCHED_TEXT
Al Viro198a4102006-01-12 01:06:11 -080018 LOCK_TEXT
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 *(.fixup)
20 *(.gnu.warning)
21 } :text = 0x4e75
22
Roman Zippelfe6d9da2007-08-22 14:01:33 -070023 _etext = .; /* End of text section */
24
Linus Torvalds1da177e2005-04-16 15:20:36 -070025 . = ALIGN(16); /* Exception table */
26 __start___ex_table = .;
27 __ex_table : { *(__ex_table) }
28 __stop___ex_table = .;
29
30 RODATA
31
Linus Torvalds1da177e2005-04-16 15:20:36 -070032 .data : { /* Data */
Sam Ravnborgca967252007-05-17 13:38:44 +020033 DATA_DATA
Linus Torvalds1da177e2005-04-16 15:20:36 -070034 CONSTRUCTORS
35 }
36
Linus Torvalds1da177e2005-04-16 15:20:36 -070037 . = ALIGN(16);
Roman Zippel68abcee2008-10-13 21:58:49 +020038 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
39
40 .bss : { *(.bss) } /* BSS */
Linus Torvalds1da177e2005-04-16 15:20:36 -070041
42 _edata = .; /* End of data section */
43
44 /* will be freed after init */
Cyrill Gorcunov97d26e72008-07-17 21:16:11 +020045 . = ALIGN(PAGE_SIZE); /* Init code and data */
Linus Torvalds1da177e2005-04-16 15:20:36 -070046 __init_begin = .;
47 .init.text : {
48 _sinittext = .;
Sam Ravnborg01ba2bd2008-01-20 14:15:03 +010049 INIT_TEXT
Linus Torvalds1da177e2005-04-16 15:20:36 -070050 _einittext = .;
Roman Zippel68abcee2008-10-13 21:58:49 +020051 } :data
Sam Ravnborg01ba2bd2008-01-20 14:15:03 +010052 .init.data : { INIT_DATA }
Linus Torvalds1da177e2005-04-16 15:20:36 -070053 . = ALIGN(16);
54 __setup_start = .;
55 .init.setup : { *(.init.setup) }
56 __setup_end = .;
57 __initcall_start = .;
58 .initcall.init : {
Geert Uytterhoeven5fdb51a2006-10-29 11:21:51 +010059 INITCALLS
Linus Torvalds1da177e2005-04-16 15:20:36 -070060 }
61 __initcall_end = .;
62 __con_initcall_start = .;
63 .con_initcall.init : { *(.con_initcall.init) }
64 __con_initcall_end = .;
Roman Zippelfbe9c962007-05-31 00:40:50 -070065 .m68k_fixup : {
66 __start_fixup = .;
67 *(.m68k_fixup)
68 __stop_fixup = .;
69 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070070 SECURITY_INIT
Jean-Paul Saman67d38222007-02-10 01:44:44 -080071#ifdef CONFIG_BLK_DEV_INITRD
Linus Torvalds1da177e2005-04-16 15:20:36 -070072 . = ALIGN(8192);
73 __initramfs_start = .;
74 .init.ramfs : { *(.init.ramfs) }
75 __initramfs_end = .;
Jean-Paul Saman67d38222007-02-10 01:44:44 -080076#endif
Roman Zippel08a3db92008-10-13 21:58:50 +020077 NOTES
Linus Torvalds1da177e2005-04-16 15:20:36 -070078 . = ALIGN(8192);
79 __init_end = .;
80
81 .data.init_task : { *(.data.init_task) } /* The initial task and kernel stack */
82
83 _end = . ;
84
Linus Torvalds1da177e2005-04-16 15:20:36 -070085 /* Stabs debugging sections. */
86 .stab 0 : { *(.stab) }
87 .stabstr 0 : { *(.stabstr) }
88 .stab.excl 0 : { *(.stab.excl) }
89 .stab.exclstr 0 : { *(.stab.exclstr) }
90 .stab.index 0 : { *(.stab.index) }
91 .stab.indexstr 0 : { *(.stab.indexstr) }
92 .comment 0 : { *(.comment) }
Tejun Heo023bf6f2009-07-09 11:27:40 +090093
94 /* Sections to be discarded */
95 DISCARDS
Linus Torvalds1da177e2005-04-16 15:20:36 -070096}