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...)
126 .text_l1 L1_CODE_START : AT(LOADADDR(.exit.data) + SIZEOF(.exit.data))
131 #ifdef CONFIG_SCHEDULE_L1
137 __text_l1_lma = LOADADDR(.text_l1);
138 __text_l1_len = SIZEOF(.text_l1);
139 ASSERT (__text_l1_len <= L1_CODE_LENGTH, "L1 text overflow!")
141 .data_l1 L1_DATA_A_START : AT(__text_l1_lma + __text_l1_len)
149 *(.data_l1.cacheline_aligned)
157 __data_l1_lma = LOADADDR(.data_l1);
158 __data_l1_len = SIZEOF(.data_l1);
159 ASSERT (__data_l1_len <= L1_DATA_A_LENGTH, "L1 data A overflow!")
161 .data_b_l1 L1_DATA_B_START : AT(__data_l1_lma + __data_l1_len)
174 __data_b_l1_lma = LOADADDR(.data_b_l1);
175 __data_b_l1_len = SIZEOF(.data_b_l1);
176 ASSERT (__data_b_l1_len <= L1_DATA_B_LENGTH, "L1 data B overflow!")
178 .text_data_l2 L2_START : AT(__data_b_l1_lma + __data_b_l1_len)
192 *(.data_l2.cacheline_aligned)
200 __l2_lma = LOADADDR(.text_data_l2);
201 __l2_len = SIZEOF(.text_data_l2);
202 ASSERT (__l2_len <= L2_LENGTH, "L2 overflow!")
204 /* Force trailing alignment of our init section so that when we
205 * free our init memory, we don't leave behind a partial page.
207 . = __l2_lma + __l2_len;
208 . = ALIGN(PAGE_SIZE);