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>
15 OUTPUT_FORMAT("elf32-am33lin", "elf32-am33lin", "elf32-am33lin")
19 #ifndef CONFIG_MN10300_CURRENT_IN_E2
24 . = CONFIG_KERNEL_TEXT_ADDRESS;
27 _text = .; /* Text and read-only data */
41 _etext = .; /* End of text section */
43 . = ALIGN(16); /* Exception table */
44 __start___ex_table = .;
45 __ex_table : { *(__ex_table) }
46 __stop___ex_table = .;
60 .data_nosave : { *(.data.nosave) }
65 .data.page_aligned : { *(.data.idt) }
68 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
70 /* rarely changed data like cpu maps */
72 .data.read_mostly : AT(ADDR(.data.read_mostly)) {
74 _edata = .; /* End of data section */
77 . = ALIGN(THREAD_SIZE); /* init_task */
78 .data.init_task : { *(.data.init_task) }
80 /* might get freed after init */
82 .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) {
88 /* will be freed after init */
89 . = ALIGN(4096); /* Init code and data */
96 .init.data : { *(.init.data) }
99 .setup.init : { KEEP(*(.init.setup)) }
102 __initcall_start = .;
107 __con_initcall_start = .;
108 .con_initcall.init : { *(.con_initcall.init) }
109 __con_initcall_end = .;
113 __alt_instructions = .;
114 .altinstructions : { *(.altinstructions) }
115 __alt_instructions_end = .;
116 .altinstr_replacement : { *(.altinstr_replacement) }
117 /* .exit.text is discard at runtime, not link time, to deal with references
118 from .altinstructions and .eh_frame */
119 .exit.text : { *(.exit.text) }
120 .exit.data : { *(.exit.data) }
122 #ifdef CONFIG_BLK_DEV_INITRD
124 __initramfs_start = .;
125 .init.ramfs : { *(.init.ramfs) }
131 .data.percpu : { *(.data.percpu) }
135 /* freed after init ends here */
137 __bss_start = .; /* BSS */
147 /* This is where the kernel creates the early boot page tables */
151 /* Sections to be discarded */