forked from len0rd/rockbox
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:
parent
8f92ab02e1
commit
28dec004c0
17 changed files with 79 additions and 104 deletions
|
|
@ -46,7 +46,7 @@ SECTIONS
|
|||
. = ALIGN(0x200);
|
||||
*(.init.text)
|
||||
*(.text*)
|
||||
*(.icode)
|
||||
*(.icode*)
|
||||
*(.glue_7)
|
||||
*(.glue_7t)
|
||||
. = ALIGN(0x4);
|
||||
|
|
@ -54,18 +54,15 @@ SECTIONS
|
|||
|
||||
.rodata :
|
||||
{
|
||||
*(.rodata) /* problems without this, dunno why */
|
||||
*(.rodata*)
|
||||
*(.rodata.str1.1)
|
||||
*(.rodata.str1.4)
|
||||
*(.irodata)
|
||||
*(.irodata*)
|
||||
. = ALIGN(0x4);
|
||||
} > DRAM
|
||||
|
||||
.data :
|
||||
{
|
||||
*(.data*)
|
||||
*(.idata)
|
||||
*(.idata*)
|
||||
. = ALIGN(0x4);
|
||||
} > DRAM
|
||||
|
||||
|
|
@ -102,8 +99,8 @@ SECTIONS
|
|||
{
|
||||
. = ALIGN(4);
|
||||
_initstart = .;
|
||||
*(.init)
|
||||
*(.initdata)
|
||||
*(.init*)
|
||||
*(.initdata*)
|
||||
_initend = .;
|
||||
} > INIT AT> DRAM
|
||||
|
||||
|
|
@ -122,7 +119,7 @@ SECTIONS
|
|||
{
|
||||
_edata = .;
|
||||
*(.bss*)
|
||||
*(.ibss)
|
||||
*(.ibss*)
|
||||
*(COMMON)
|
||||
. = ALIGN(0x4);
|
||||
} > DRAM
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ SECTIONS
|
|||
{
|
||||
*(.init.text)
|
||||
*(.text*)
|
||||
*(.icode)
|
||||
*(.icode*)
|
||||
*(.glue_7)
|
||||
*(.glue_7t)
|
||||
. = ALIGN(0x4);
|
||||
|
|
@ -38,21 +38,17 @@ SECTIONS
|
|||
|
||||
.rodata :
|
||||
{
|
||||
*(.rodata) /* problems without this, dunno why */
|
||||
*(.rodata*)
|
||||
*(.rodata.str1.1)
|
||||
*(.rodata.str1.4)
|
||||
*(.irodata*)
|
||||
. = ALIGN(0x4);
|
||||
|
||||
/* Pseudo-allocate the copies of the data sections */
|
||||
_datacopy = .;
|
||||
} > DRAM
|
||||
|
||||
.data :
|
||||
{
|
||||
*(.irodata)
|
||||
*(.idata)
|
||||
*(.data*)
|
||||
*(.idata*)
|
||||
_dataend = . ;
|
||||
} > DRAM
|
||||
|
||||
|
|
@ -93,7 +89,7 @@ SECTIONS
|
|||
{
|
||||
_edata = .;
|
||||
*(.bss*);
|
||||
*(.ibss);
|
||||
*(.ibss*);
|
||||
*(COMMON)
|
||||
. = ALIGN(0x4);
|
||||
} > DRAM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue