summaryrefslogtreecommitdiff
path: root/firmware/app.lds
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-12 15:29:43 +0000
committerDave Chapman <dave@dchapman.com>2005-11-12 15:29:43 +0000
commita3bf2ec61cc25fce1de89b1a3f60bb575ec292fc (patch)
tree2d6785d871919e835555328f544d2d7e90df3874 /firmware/app.lds
parent3c1f659aeb6d2573bca65ae51f31dd9760a486d2 (diff)
downloadrockbox-a3bf2ec61cc25fce1de89b1a3f60bb575ec292fc.zip
rockbox-a3bf2ec61cc25fce1de89b1a3f60bb575ec292fc.tar.gz
rockbox-a3bf2ec61cc25fce1de89b1a3f60bb575ec292fc.tar.bz2
rockbox-a3bf2ec61cc25fce1de89b1a3f60bb575ec292fc.tar.xz
More iPod changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7825 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/app.lds')
-rw-r--r--firmware/app.lds51
1 files changed, 11 insertions, 40 deletions
diff --git a/firmware/app.lds b/firmware/app.lds
index 1a12cb5..af5cd8d 100644
--- a/firmware/app.lds
+++ b/firmware/app.lds
@@ -10,6 +10,7 @@ INPUT(crt0.o)
#elif CONFIG_CPU == PP5020
OUTPUT_FORMAT(elf32-littlearm)
OUTPUT_ARCH(arm)
+INPUT(crt0.o)
#else
OUTPUT_FORMAT(elf32-sh)
INPUT(crt0.o)
@@ -103,44 +104,6 @@ _audiobufend = 0;
_pluginbuf = 0;
}
-#elif CONFIG_CPU==PP5020
-SECTIONS
-{
- . = 0x10000000;
-
- .text : {
- *(.init.text)
- *(.text)
- }
-
- __data_start__ = . ;
- .data : { *(.data) }
- __data_end__ = . ;
-
- __stack_start__ = .;
- .stack :
- {
- *(.stack)
- _stackbegin = .;
- stackbegin = .;
- . += 0x2000;
- _stackend = .;
- stackend = .;
- }
-
- /* The bss section is too large for IRAM - we just move it at the
- end of the regular RAM. */
-
- . = 0x11c00000;
- __bss_start__ = .;
- .bss : {
- *(.bss);
- __bss_end__ = . ;
- }
-
-
-
-}
#else
#define PLUGINSIZE PLUGIN_BUFFER_SIZE
@@ -159,6 +122,10 @@ SECTIONS
#define DRAMORIG 0x31000000 + STUBOFFSET
#define IRAMORIG 0x10000000
#define IRAMSIZE 0xc000
+#elif CONFIG_CPU==PP5020
+#define DRAMORIG 0x10000000 + STUBOFFSET
+#define IRAMORIG 0x40000000
+#define IRAMSIZE 0xc000
#else
#define DRAMORIG 0x09000000 + STUBOFFSET
#define IRAMORIG 0x0f000000
@@ -194,6 +161,10 @@ SECTIONS
. = ALIGN(0x200);
*(.init.text)
*(.text*)
+#if CONFIG_CPU==PP5020
+ *(.glue_7)
+ *(.glue_7t)
+#endif
. = ALIGN(0x4);
} > DRAM
@@ -243,7 +214,7 @@ SECTIONS
_iend = .;
} > IRAM
-#ifdef CPU_COLDFIRE
+#if defined(CPU_COLDFIRE) || CONFIG_CPU==PP5020
.stack :
{
*(.stack)
@@ -263,7 +234,7 @@ SECTIONS
} > DRAM
#endif
-#ifdef CPU_COLDFIRE
+#if defined(CPU_COLDFIRE) || CONFIG_CPU==PP5020
.bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram):
#else
.bss :