blob: 1ad6b7ad2c173f36b66f457abb0c19e37deda001 [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>
Tim Abbott7c5fd562009-09-27 13:57:55 -04005#include <asm/thread_info.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
7OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
8OUTPUT_ARCH(m68k)
9ENTRY(_start)
10jiffies = jiffies_64 + 4;
11SECTIONS
12{
Sam Creaseya3a79bd2006-12-09 10:34:38 +010013 . = 0xE002000;
Linus Torvalds1da177e2005-04-16 15:20:36 -070014 _text = .; /* Text and read-only data */
15 .text : {
Tim Abbott6f335ca2009-04-25 22:11:03 -040016 HEAD_TEXT
Sam Ravnborg76647092007-05-13 00:31:33 +020017 TEXT_TEXT
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 SCHED_TEXT
Al Viro198a4102006-01-12 01:06:11 -080019 LOCK_TEXT
Linus Torvalds1da177e2005-04-16 15:20:36 -070020 *(.fixup)
21 *(.gnu.warning)
22 } :text = 0x4e75
23 RODATA
24
25 _etext = .; /* End of text section */
26
Tim Abbott7c5fd562009-09-27 13:57:55 -040027 EXCEPTION_TABLE(16) :data
28 RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) :data
Linus Torvalds1da177e2005-04-16 15:20:36 -070029 /* End of data goes *here* so that freeing init code works properly. */
30 _edata = .;
Al Viro877d5242009-01-05 17:28:10 +000031 NOTES
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
33 /* will be freed after init */
Cyrill Gorcunov97d26e72008-07-17 21:16:11 +020034 . = ALIGN(PAGE_SIZE); /* Init code and data */
Linus Torvalds1da177e2005-04-16 15:20:36 -070035__init_begin = .;
Tim Abbott7c5fd562009-09-27 13:57:55 -040036 INIT_TEXT_SECTION(PAGE_SIZE)
37 INIT_DATA_SECTION(16)
Roman Zippelfbe9c962007-05-31 00:40:50 -070038 .m68k_fixup : {
39 __start_fixup = .;
40 *(.m68k_fixup)
41 __stop_fixup = .;
42 }
Cyrill Gorcunov97d26e72008-07-17 21:16:11 +020043 . = ALIGN(PAGE_SIZE);
Linus Torvalds1da177e2005-04-16 15:20:36 -070044 __init_end = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
Tim Abbott7c5fd562009-09-27 13:57:55 -040046 BSS_SECTION(0, 0, 0)
Linus Torvalds1da177e2005-04-16 15:20:36 -070047
48 _end = . ;
49
Tim Abbott7c5fd562009-09-27 13:57:55 -040050 STABS_DEBUG
Linus Torvalds1da177e2005-04-16 15:20:36 -070051
Tejun Heo023bf6f2009-07-09 11:27:40 +090052 /* Sections to be discarded */
53 DISCARDS
Linus Torvalds1da177e2005-04-16 15:20:36 -070054}