summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-11 18:42:57 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-11 18:42:57 +0000
commit707cb7bc049a036f19ae8b89973502cd1752b9d8 (patch)
treee6876ea7a670a912953d56613e610bb8b9693929 /firmware
parent2860c5e70ae6c4ded2a662b8eed5996e381ed014 (diff)
downloadrockbox-707cb7bc049a036f19ae8b89973502cd1752b9d8.tar.gz
rockbox-707cb7bc049a036f19ae8b89973502cd1752b9d8.zip
Subtle fix for international support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5915 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/app.lds16
1 files changed, 11 insertions, 5 deletions
diff --git a/firmware/app.lds b/firmware/app.lds
index 30c8a0d524..edb259aa2b 100644
--- a/firmware/app.lds
+++ b/firmware/app.lds
@@ -36,8 +36,18 @@ SECTIONS
*(.vectors)
}> ICMEM AT> FIRMWARE
+/* We start at 0x2000, to avoid overwriting Archos' loader datasegment.
+ * If it turns out that we won't call back the loader, this can be set to 0.
+ */
+.bss 0x2000 : {
+ *(.bss)
+ . = ALIGN(2);
+ }> DRAM
-.data 0x2000: {
+/* Data is put after BSS, to have all strings addresses > VIRT_PTR + VIRT_SIZE.
+ Strings are in rodata, so what we really assert is (.rodata > VIRT_PTR + VIRT_SIZE)
+ See settings.h for details */
+.data ALIGN(2): {
*(.data)
. = ALIGN(2);
*(.rodata)
@@ -46,10 +56,6 @@ SECTIONS
. = ALIGN(2);
}> DRAM AT> FIRMWARE
-.bss ALIGN(2) : {
- *(.bss)
- . = ALIGN(2);
- }> DRAM
.stack ALIGN(2) : {
. = . + 0x2000;