2 * Copyright 2004-2009 Analog Devices Inc.
4 * Licensed under the GPL-2 or later
7 #define VMLINUX_SYMBOL(_sym_) _##_sym_
9 #include <asm-generic/vmlinux.lds.h>
10 #include <asm/mem_map.h>
12 #include <asm/thread_info.h>
14 OUTPUT_FORMAT("elf32-bfin")
16 _jiffies = _jiffies_64;
21 /* Neither the text, ro_data or bss section need to be aligned
22 * So pack them back to back
30 #ifndef CONFIG_SCHEDULE_L1
44 ___start___ex_table = .;
46 ___stop___ex_table = .;
53 /* Just in case the first read only is a 32-bit access */
75 /* This gets done first, so the glob doesn't suck it in */
76 CACHELINE_ALIGNED_DATA(32)
80 *(.data_l1.cacheline_aligned)
88 *(.data_l2.cacheline_aligned)
95 INIT_TASK_DATA(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);
108 INIT_TEXT_SECTION(PAGE_SIZE)
110 INIT_DATA_SECTION(16)
113 /* we have to discard exit text and such at runtime, not link time, to
114 * handle embedded cross-section references (alt instructions, bug
115 * table, eh_frame, etc...)
128 .text_l1 L1_CODE_START : AT(LOADADDR(.exit.data) + SIZEOF(.exit.data))
133 #ifdef CONFIG_SCHEDULE_L1
139 ASSERT (SIZEOF(.text_l1) <= L1_CODE_LENGTH, "L1 text overflow!")
141 .data_l1 L1_DATA_A_START : AT(LOADADDR(.text_l1) + SIZEOF(.text_l1))
149 *(.data_l1.cacheline_aligned)
157 ASSERT (SIZEOF(.data_l1) <= L1_DATA_A_LENGTH, "L1 data A overflow!")
159 .data_b_l1 L1_DATA_B_START : AT(LOADADDR(.data_l1) + SIZEOF(.data_l1))
172 ASSERT (SIZEOF(.data_b_l1) <= L1_DATA_B_LENGTH, "L1 data B overflow!")
174 __l2_lma_start = LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1);
176 .text_data_l2 L2_START : AT(LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1))
190 *(.data_l2.cacheline_aligned)
198 ASSERT (SIZEOF(.text_data_l2) <= L2_LENGTH, "L2 overflow!")
200 /* Force trailing alignment of our init section so that when we
201 * free our init memory, we don't leave behind a partial page.
203 . = LOADADDR(.text_data_l2) + SIZEOF(.text_data_l2);
204 . = ALIGN(PAGE_SIZE);