1 /* MN10300 Main kernel linker script
3 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
11 #define __VMLINUX_LDS__
12 #include <asm-generic/vmlinux.lds.h>
13 #include <asm/thread_info.h>
16 OUTPUT_FORMAT("elf32-am33lin", "elf32-am33lin", "elf32-am33lin")
20 #ifndef CONFIG_MN10300_CURRENT_IN_E2
25 . = CONFIG_KERNEL_TEXT_ADDRESS;
28 _text = .; /* Text and read-only data */
42 _etext = .; /* End of text section */
44 . = ALIGN(16); /* Exception table */
45 __start___ex_table = .;
46 __ex_table : { *(__ex_table) }
47 __stop___ex_table = .;
61 .data_nosave : { *(.data.nosave) }
66 .data.page_aligned : { *(.data.idt) }
69 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
71 /* rarely changed data like cpu maps */
73 .data.read_mostly : AT(ADDR(.data.read_mostly)) {
75 _edata = .; /* End of data section */
78 . = ALIGN(THREAD_SIZE); /* init_task */
79 .data.init_task : { *(.data.init_task) }
81 /* might get freed after init */
83 .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) {
89 /* will be freed after init */
90 . = ALIGN(PAGE_SIZE); /* Init code and data */
97 .init.data : { *(.init.data) }
100 .setup.init : { KEEP(*(.init.setup)) }
103 __initcall_start = .;
108 __con_initcall_start = .;
109 .con_initcall.init : { *(.con_initcall.init) }
110 __con_initcall_end = .;
114 __alt_instructions = .;
115 .altinstructions : { *(.altinstructions) }
116 __alt_instructions_end = .;
117 .altinstr_replacement : { *(.altinstr_replacement) }
118 /* .exit.text is discard at runtime, not link time, to deal with references
119 from .altinstructions and .eh_frame */
120 .exit.text : { *(.exit.text) }
121 .exit.data : { *(.exit.data) }
123 #ifdef CONFIG_BLK_DEV_INITRD
124 . = ALIGN(PAGE_SIZE);
125 __initramfs_start = .;
126 .init.ramfs : { *(.init.ramfs) }
131 . = ALIGN(PAGE_SIZE);
133 /* freed after init ends here */
135 __bss_start = .; /* BSS */
145 /* This is where the kernel creates the early boot page tables */
146 . = ALIGN(PAGE_SIZE);
149 /* Sections to be discarded */