2 * File: arch/blackfin/kernel/vmlinux.lds.S
3 * Based on: none - original work
6 * Created: Tue Sep 21 2004
7 * Description: Master linker script for blackfin architecture
10 * Copyright 2004-2007 Analog Devices Inc.
12 * Bugs: Enter bugs at http://blackfin.uclinux.org/
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, see the file COPYING, or write
26 * to the Free Software Foundation, Inc.,
27 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 #define VMLINUX_SYMBOL(_sym_) _##_sym_
32 #include <asm-generic/vmlinux.lds.h>
33 #include <asm/mem_map.h>
35 #include <asm/thread_info.h>
37 OUTPUT_FORMAT("elf32-bfin")
39 _jiffies = _jiffies_64;
44 /* Neither the text, ro_data or bss section need to be aligned
45 * So pack them back to back
60 ___start___ex_table = .;
62 ___stop___ex_table = .;
67 /* Just in case the first read only is a 32-bit access */
82 /* This gets done first, so the glob doesn't suck it in */
84 *(.data.cacheline_aligned)
90 /* make sure the init_task is aligned to the
91 * kernel thread size so we can locate the kernel
92 * stack properly and quickly.
94 . = ALIGN(THREAD_SIZE);
100 /* The init section should be last, so when we free it, it goes into
101 * the general memory pool, and (hopefully) will decrease fragmentation
102 * a tiny bit. The init section has a _requirement_ that it be
105 . = ALIGN(PAGE_SIZE);
110 . = ALIGN(PAGE_SIZE);
129 ___initcall_start = .;
135 ___con_initcall_start = .;
136 *(.con_initcall.init)
137 ___con_initcall_end = .;
143 ___initramfs_start = .;
145 ___initramfs_end = .;
150 <<<<<<< HEAD:arch/blackfin/kernel/vmlinux.lds.S
153 # define LDS_L1_CODE *(.l1.text)
157 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/blackfin/kernel/vmlinux.lds.S
158 .text_l1 L1_CODE_START : AT(LOADADDR(.init.ramfs) + SIZEOF(.init.ramfs))
162 <<<<<<< HEAD:arch/blackfin/kernel/vmlinux.lds.S
167 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/blackfin/kernel/vmlinux.lds.S
172 <<<<<<< HEAD:arch/blackfin/kernel/vmlinux.lds.S
175 # define LDS_L1_A_DATA *(.l1.data)
176 # define LDS_L1_A_BSS *(.l1.bss)
177 # define LDS_L1_A_CACHE *(.data_l1.cacheline_aligned)
179 # define LDS_L1_A_DATA
180 # define LDS_L1_A_BSS
181 # define LDS_L1_A_CACHE
183 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/blackfin/kernel/vmlinux.lds.S
184 .data_l1 L1_DATA_A_START : AT(LOADADDR(.text_l1) + SIZEOF(.text_l1))
188 <<<<<<< HEAD:arch/blackfin/kernel/vmlinux.lds.S
192 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/blackfin/kernel/vmlinux.lds.S
197 <<<<<<< HEAD:arch/blackfin/kernel/vmlinux.lds.S
201 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/blackfin/kernel/vmlinux.lds.S
204 <<<<<<< HEAD:arch/blackfin/kernel/vmlinux.lds.S
205 *(.data_l1.cacheline_aligned)
208 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/blackfin/kernel/vmlinux.lds.S
214 <<<<<<< HEAD:arch/blackfin/kernel/vmlinux.lds.S
217 # define LDS_L1_B_DATA *(.l1.data.B)
218 # define LDS_L1_B_BSS *(.l1.bss.B)
220 # define LDS_L1_B_DATA
221 # define LDS_L1_B_BSS
223 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/blackfin/kernel/vmlinux.lds.S
224 .data_b_l1 L1_DATA_B_START : AT(LOADADDR(.data_l1) + SIZEOF(.data_l1))
228 <<<<<<< HEAD:arch/blackfin/kernel/vmlinux.lds.S
232 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/blackfin/kernel/vmlinux.lds.S
237 <<<<<<< HEAD:arch/blackfin/kernel/vmlinux.lds.S
241 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/blackfin/kernel/vmlinux.lds.S
247 /* Force trailing alignment of our init section so that when we
248 * free our init memory, we don't leave behind a partial page.
250 . = LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1);
251 . = ALIGN(PAGE_SIZE);