summaryrefslogtreecommitdiff
path: root/firmware/target/arm/sandisk/boot.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/sandisk/boot.lds')
-rw-r--r--firmware/target/arm/sandisk/boot.lds77
1 files changed, 2 insertions, 75 deletions
diff --git a/firmware/target/arm/sandisk/boot.lds b/firmware/target/arm/sandisk/boot.lds
index a4ea28ab8c..4586c09e20 100644
--- a/firmware/target/arm/sandisk/boot.lds
+++ b/firmware/target/arm/sandisk/boot.lds
@@ -3,79 +3,6 @@
3/* Can't link all Sansa PP devices the same way at this time */ 3/* Can't link all Sansa PP devices the same way at this time */
4#ifdef HAVE_BOOTLOADER_USB_MODE 4#ifdef HAVE_BOOTLOADER_USB_MODE
5#include "../pp/boot-pp502x-bl-usb.lds" 5#include "../pp/boot-pp502x-bl-usb.lds"
6#else /* !HAVE_BOOTLOADER_USB_MODE */
7
8ENTRY(start)
9OUTPUT_FORMAT(elf32-littlearm)
10OUTPUT_ARCH(arm)
11STARTUP(target/arm/pp/crt0-pp-bl.o)
12
13#define DRAMSIZE (MEMORYSIZE * 0x100000)
14
15#ifdef SANSA_VIEW
16#define DRAMORIG 0x10f00000
17#else
18#define DRAMORIG 0x10000000
19#endif
20
21#ifndef IRAMORIG
22#define IRAMORIG 0x40000000
23#endif
24#define IRAMSIZE 0x20000
25#define FLASHORIG 0x001f0000
26#define FLASHSIZE 2M
27
28MEMORY
29{
30 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
31 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
32}
33
34SECTIONS
35{
36#ifdef SANSA_PP_ERASE
37 . = IRAMORIG+0x4000;
38#else 6#else
39 . = IRAMORIG; 7#include "../pp/boot-pp.lds"
40#endif 8#endif \ No newline at end of file
41
42 .text : {
43 *(.init.text)
44 *(.text*)
45 *(.glue_7)
46 *(.glue_7t)
47 } > IRAM
48
49 .data : {
50 *(.icode)
51 *(.irodata)
52 *(.idata)
53 *(.data*)
54 *(.ncdata*)
55 *(.rodata*)
56 _dataend = . ;
57 } > IRAM
58
59 .stack (NOLOAD) : {
60 *(.stack)
61 _stackbegin = .;
62 stackbegin = .;
63 . += 0x2000;
64 _stackend = .;
65 stackend = .;
66 } > IRAM
67
68 /* The bss section is too large for IRAM - we just move it 16MB into the
69 DRAM */
70
71 . = DRAMORIG;
72 .bss . + (16*1024*1024) (NOLOAD) : {
73 _edata = .;
74 *(.bss*);
75 *(.ibss);
76 *(COMMON)
77 *(.ncbss*);
78 _end = .;
79 } > DRAM
80}
81#endif /* HAVE_BOOTLOADER_USB_MODE */