summaryrefslogtreecommitdiffstats
path: root/firmware/rom.lds
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-09-06 07:05:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-09-06 07:05:12 +0000
commit678090a2e7e694fa72fb9a4d4c7532e2699e2880 (patch)
treef60778f49cc620ab64b8cd4e9abdafa6f10eafe4 /firmware/rom.lds
parent0dfc2c9dcd07adfc874e297e549d146035fc0292 (diff)
downloadrockbox-678090a2e7e694fa72fb9a4d4c7532e2699e2880.tar.gz
rockbox-678090a2e7e694fa72fb9a4d4c7532e2699e2880.tar.bz2
rockbox-678090a2e7e694fa72fb9a4d4c7532e2699e2880.zip
rombox support: building and zip
general makefile: less output git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5043 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/rom.lds')
-rw-r--r--firmware/rom.lds17
1 files changed, 6 insertions, 11 deletions
diff --git a/firmware/rom.lds b/firmware/rom.lds
index c5492431b2..a759ed2f9f 100644
--- a/firmware/rom.lds
+++ b/firmware/rom.lds
@@ -24,15 +24,14 @@ SECTIONS
. = _datastart + 0x200;
*(.data)
. = ALIGN(0x4);
- _dataend = .;
+ _dataend = .;
+ . = ALIGN(0x10); /* Maintain proper alignment for .text section */
} > DRAM
- .datacopy :
- {
- . += SIZEOF(.data);
- } > FLASH
-
- .text :
+ /* TRICK ALERT! Newer versions of the linker don't allow output sections
+ to overlap even if one of them is empty, so advance the location pointer
+ "by hand" */
+ .text LOADADDR(.data) + SIZEOF(.data) :
{
*(.init.text)
*(.text)
@@ -44,10 +43,6 @@ SECTIONS
*(.rodata)
*(.rodata.str1.4)
. = ALIGN(0x4);
- } > FLASH
-
- .iramcopy :
- {
_iramcopy = .;
} > FLASH