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-2006 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>
36 OUTPUT_FORMAT("elf32-bfin")
38 _jiffies = _jiffies_64;
42 ram : ORIGIN = CONFIG_BOOT_LOAD, LENGTH = (CONFIG_MEM_SIZE * 1024 * 1024) - (CONFIG_BOOT_LOAD)
43 l1_data_a : ORIGIN = L1_DATA_A_START, LENGTH = L1_DATA_A_LENGTH
44 l1_data_b : ORIGIN = L1_DATA_B_START, LENGTH = L1_DATA_B_LENGTH
45 l1_code : ORIGIN = L1_CODE_START, LENGTH = L1_CODE_LENGTH
46 l1_scratch : ORIGIN = L1_SCRATCH_START, LENGTH = L1_SCRATCH_LENGTH
61 ___start___ex_table = .;
63 ___stop___ex_table = .;
68 *(__vermagic) /* Kernel version magic */
73 /* Kernel symbol table: Normal symbols */
75 ___start___ksymtab = .;
77 ___stop___ksymtab = .;
79 /* Kernel symbol table: GPL-only symbols */
80 ___start___ksymtab_gpl = .;
82 ___stop___ksymtab_gpl = .;
84 /* Kernel symbol table: Normal unused symbols */ \
85 ___start___ksymtab_unused = .;
87 ___stop___ksymtab_unused = .;
89 /* Kernel symbol table: GPL-only unused symbols */
90 ___start___ksymtab_unused_gpl = .;
91 *(__ksymtab_unused_gpl)
92 ___stop___ksymtab_unused_gpl = .;
95 /* Kernel symbol table: GPL-future symbols */
96 ___start___ksymtab_gpl_future = .;
97 *(__ksymtab_gpl_future)
98 ___stop___ksymtab_gpl_future = .;
100 /* Kernel symbol table: Normal symbols */
101 ___start___kcrctab = .;
103 ___stop___kcrctab = .;
105 /* Kernel symbol table: GPL-only symbols */
106 ___start___kcrctab_gpl = .;
108 ___stop___kcrctab_gpl = .;
110 /* Kernel symbol table: GPL-future symbols */
111 ___start___kcrctab_gpl_future = .;
112 *(__kcrctab_gpl_future)
113 ___stop___kcrctab_gpl_future = .;
115 /* Kernel symbol table: strings */
134 ___start___param = .;
137 ___initcall_start = .;
140 ___con_initcall_start = .;
141 *(.con_initcall.init)
142 ___con_initcall_end = .;
143 ___security_initcall_start = .;
144 *(.security_initcall.init)
145 ___security_initcall_end = .;
147 ___initramfs_start = .;
149 ___initramfs_end = .;
178 *(.data_l1.cacheline_aligned)
182 } > l1_data_a AT > ram
196 } > l1_data_b AT > ram
206 *(.data.cacheline_aligned)
212 /DISCARD/ : { /* Exit code and data*/