Do some things to make -ffunction-sections work better.

* Add wildcards to various sections placements a la *(".text") => "*(.text*)"
* Remove hacky bits from those linker scripts (no problem encountered testing)
* Change section for asm functions from .<section> to .<section>.<function>
  so that -ffunction-sections works for those asm file too.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31337 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-12-17 01:43:32 +00:00
parent 8f92ab02e1
commit 28dec004c0
17 changed files with 79 additions and 104 deletions

View file

@ -51,10 +51,7 @@ SECTIONS
.rodata :
{
*(.rodata) /* problems without this, dunno why */
*(.rodata*)
*(.rodata.str1.1)
*(.rodata.str1.4)
. = ALIGN(0x4);
} > DRAM
@ -97,9 +94,9 @@ SECTIONS
.iram :
{
_iramstart = .;
*(.irodata)
*(.idata)
*(.icode)
*(.irodata*)
*(.idata*)
*(.icode*)
. = ALIGN(0x4);
_iramend = .;
} > SRAM AT> DRAM
@ -109,7 +106,7 @@ SECTIONS
.ibss (NOLOAD) :
{
_iedata = .;
*(.ibss)
*(.ibss*)
. = ALIGN(0x4);
_iend = .;
} > SRAM

View file

@ -27,16 +27,15 @@ SECTIONS
{
.text : {
*(.init.text)
*(.text)
*(.text*)
*(.glue_7)
*(.glue_7t)
} > DRAM
.data : {
*(.icode)
*(.irodata)
*(.idata)
*(.icode*)
*(.irodata*)
*(.idata*)
*(.data*)
*(.rodata.*)
. = ALIGN(0x4);
@ -55,7 +54,7 @@ SECTIONS
.bss (NOLOAD) : {
_edata = .;
*(.bss*);
*(.ibss);
*(.ibss*);
*(COMMON)
_end = .;
} > DRAM