blob: cdc313e7c299a66c2d7700526f00bcd0463142cf [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>
4
5OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
6OUTPUT_ARCH(m68k)
7ENTRY(_start)
8jiffies = jiffies_64 + 4;
9SECTIONS
10{
Sam Creaseya3a79bd2006-12-09 10:34:38 +010011 . = 0xE002000;
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 _text = .; /* Text and read-only data */
13 .text : {
Al Viro7e5de052007-07-20 04:33:08 +010014 *(.text.head)
Sam Ravnborg76647092007-05-13 00:31:33 +020015 TEXT_TEXT
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 SCHED_TEXT
Al Viro198a4102006-01-12 01:06:11 -080017 LOCK_TEXT
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 *(.fixup)
19 *(.gnu.warning)
20 } :text = 0x4e75
21 RODATA
22
23 _etext = .; /* End of text section */
24
25 .data : { /* Data */
Sam Ravnborgca967252007-05-17 13:38:44 +020026 DATA_DATA
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 CONSTRUCTORS
28 . = ALIGN(16); /* Exception table */
29 __start___ex_table = .;
30 *(__ex_table)
31 __stop___ex_table = .;
32 } :data
33 /* End of data goes *here* so that freeing init code works properly. */
34 _edata = .;
35
36 /* will be freed after init */
37 . = ALIGN(8192); /* Init code and data */
38__init_begin = .;
39 .init.text : {
40 _sinittext = .;
Sam Ravnborg01ba2bd2008-01-20 14:15:03 +010041 INIT_TEXT
Linus Torvalds1da177e2005-04-16 15:20:36 -070042 _einittext = .;
43 }
Sam Ravnborg01ba2bd2008-01-20 14:15:03 +010044 .init.data : { INIT_DATA }
Linus Torvalds1da177e2005-04-16 15:20:36 -070045 . = ALIGN(16);
46 __setup_start = .;
47 .init.setup : { *(.init.setup) }
48 __setup_end = .;
49 __initcall_start = .;
50 .initcall.init : {
Geert Uytterhoeven5fdb51a2006-10-29 11:21:51 +010051 INITCALLS
Linus Torvalds1da177e2005-04-16 15:20:36 -070052 }
53 __initcall_end = .;
54 __con_initcall_start = .;
55 .con_initcall.init : { *(.con_initcall.init) }
56 __con_initcall_end = .;
Roman Zippelfbe9c962007-05-31 00:40:50 -070057 .m68k_fixup : {
58 __start_fixup = .;
59 *(.m68k_fixup)
60 __stop_fixup = .;
61 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070062 SECURITY_INIT
Jean-Paul Saman67d38222007-02-10 01:44:44 -080063#ifdef CONFIG_BLK_DEV_INITRD
Linus Torvalds1da177e2005-04-16 15:20:36 -070064 . = ALIGN(8192);
65 __initramfs_start = .;
66 .init.ramfs : { *(.init.ramfs) }
67 __initramfs_end = .;
Jean-Paul Saman67d38222007-02-10 01:44:44 -080068#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070069 . = ALIGN(8192);
70 __init_end = .;
Al Viro54a5a6e2006-01-12 01:06:38 -080071 .data.init.task : { *(.data.init_task) }
Linus Torvalds1da177e2005-04-16 15:20:36 -070072
73
74 .bss : { *(.bss) } /* BSS */
75
76 _end = . ;
77
78 /* Sections to be discarded */
79 /DISCARD/ : {
Sam Ravnborg01ba2bd2008-01-20 14:15:03 +010080 EXIT_TEXT
81 EXIT_DATA
Linus Torvalds1da177e2005-04-16 15:20:36 -070082 *(.exitcall.exit)
83 }
84
85 .crap : {
86 /* Stabs debugging sections. */
87 *(.stab)
88 *(.stabstr)
89 *(.stab.excl)
90 *(.stab.exclstr)
91 *(.stab.index)
92 *(.stab.indexstr)
93 *(.comment)
94 *(.note)
95 }
96
97}