1 /* ld script to make m68k Coldfire Linux kernel
3 * Derived from arch/m68k/kernel/vmlinux-std.lds
5 * Updated 11/26/2007 for new CodeSourcery toolset
6 * by Kurt Mahan <kmahan@freescale.com>
8 * Copyright Freescale Semiconductor, Inc. 2008-2009
9 * Jason Jin Jason.Jin@freescale.com
10 * Shrek Wu B16972@freescale.com
13 #define LOAD_OFFSET 0x00000000
15 #include <asm-generic/vmlinux.lds.h>
16 #include <asm/page_offset.h>
18 #define START_OFFSET 0x00020000
19 #define IMAGE_START PAGE_OFFSET_RAW + START_OFFSET
21 OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
24 jiffies = jiffies_64 + 4;
28 .text.head : AT(ADDR(.text.head) - LOAD_OFFSET) {
29 _text = .; /* Text and read-only data */
33 .text : AT(ADDR(.text) - LOAD_OFFSET) {
41 _etext = .; /* End of text section */
44 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
45 __start___ex_table = .;
47 __stop___ex_table = .;
53 .data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */
60 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET ) {
61 *(.data.cacheline_aligned)
64 _edata = .; /* End of data section */
66 . = ALIGN(8192); /* Initrd */
67 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) {
74 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) {
79 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) {
85 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET) {
91 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) {
92 __con_initcall_start = .;
94 __con_initcall_end = .;
99 #ifdef CONFIG_BLK_DEV_INITRD
101 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {
102 __initramfs_start = .;
111 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) {
112 *(.data.init_task) /* The initial task and kernel stack */
116 .bss : AT(ADDR(.bss) - LOAD_OFFSET) { /* BSS */
131 .comment 0 : { *(.comment) }
133 /* Sections to be discarded */