summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-18 07:09:00 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-18 07:09:00 +0000
commit0efabb3d19e7690585641c4a19eca131d15b59d8 (patch)
treedea4fbd21f07f4dea4c0e292f8de58239f9823b0 /firmware
parentca9111ef641f42ccb32610d8f3ac44767b062e94 (diff)
downloadrockbox-0efabb3d19e7690585641c4a19eca131d15b59d8.zip
rockbox-0efabb3d19e7690585641c4a19eca131d15b59d8.tar.gz
rockbox-0efabb3d19e7690585641c4a19eca131d15b59d8.tar.bz2
rockbox-0efabb3d19e7690585641c4a19eca131d15b59d8.tar.xz
Add linker script wildcards for -ffunction-sections and -fdata-sections.
This adds wildcards to accept section names created by -ffunction-sections and -fdata-sections. It should now be possible to build all targets with those switches. Other wildcards such as those in r31337 and r31338 are only needed when things are explicitly put into those sectons. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31352 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/rom.lds6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/rom.lds b/firmware/rom.lds
index dadd2ab..e63ba78 100644
--- a/firmware/rom.lds
+++ b/firmware/rom.lds
@@ -84,7 +84,7 @@ SECTIONS
KEEP(*(.resetvectors));
KEEP(*(.vectors));
. = ALIGN(0x200);
- *(.data)
+ *(.data*)
. = ALIGN(0x4);
_dataend = .;
. = ALIGN(0x10); /* Maintain proper alignment for .text section */
@@ -101,13 +101,13 @@ SECTIONS
.text LOADADDR(.data) + SIZEOF(.data) :
{
*(.init.text)
- *(.text)
+ *(.text*)
. = ALIGN(0x4);
} > FLASH
.rodata :
{
- *(.rodata)
+ *(.rodata*)
*(.rodata.str1.1)
*(.rodata.str1.4)
. = ALIGN(0x4);