From bd6a0f15f0623a0451f2fffde3919c956723d477 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 20 Feb 2007 11:06:01 +0000 Subject: Prepare the bootloader command file for --gc-sections git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12412 a1c6a512-1295-4272-9138-f99709370657 --- firmware/boot.lds | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/firmware/boot.lds b/firmware/boot.lds index a8c8947..2907200 100644 --- a/firmware/boot.lds +++ b/firmware/boot.lds @@ -85,14 +85,14 @@ SECTIONS .text : { *(.init.text) - *(.text) + *(.text*) } .data : { *(.icode) *(.irodata) *(.idata) - *(.data) + *(.data*) _dataend = . ; } @@ -112,7 +112,7 @@ SECTIONS . = (DRAMORIG+16*1024*1024); .bss : { _edata = .; - *(.bss); + *(.bss*); *(.ibss); _end = .; } @@ -122,13 +122,13 @@ SECTIONS . = DRAMORIG + 0x1000000; .text : { *(.init.text) - *(.text) + *(.text*) } .data : { *(.icode) *(.irodata) *(.idata) - *(.data) + *(.data*) _dataend = . ; } .stack : @@ -142,7 +142,7 @@ SECTIONS } .bss : { _edata = .; - *(.bss); + *(.bss*); *(.ibss); _end = .; } @@ -166,7 +166,7 @@ SECTIONS *(.icode) *(.irodata) *(.idata) - *(.data) + *(.data*) . = ALIGN(0x4); _dataend = .; . = ALIGN(0x10); /* Maintain proper alignment for .text section */ @@ -178,15 +178,13 @@ SECTIONS .text LOADADDR(.data) + SIZEOF(.data) : { *(.init.text) - *(.text) + *(.text*) . = ALIGN(0x4); } > FLASH .rodata : { - *(.rodata) - *(.rodata.str1.1) - *(.rodata.str1.4) + *(.rodata*) . = ALIGN(0x4); _iramcopy = .; } > FLASH @@ -209,7 +207,7 @@ SECTIONS { _edata = .; *(.ibss) - *(.bss) + *(.bss*) *(COMMON) _end = .; #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) || defined(IAUDIO_X5) -- cgit v1.1