From 60f843bf181fba3fc509955195ecea786cc002b2 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 11 Jun 2010 14:39:35 +0000 Subject: Configure Gigabeat S with EABI compiler by default. Implement the INIT section that this enables (due to selective need for long calls). Remove pcm_postinit from INIT section since it's asynchronous. Disable strict aliasing on SPC codec for now just to shut it up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26779 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/app.lds | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) (limited to 'firmware/target/arm/imx31/app.lds') diff --git a/firmware/target/arm/imx31/app.lds b/firmware/target/arm/imx31/app.lds index 7043a55526..24b9f27d5d 100644 --- a/firmware/target/arm/imx31/app.lds +++ b/firmware/target/arm/imx31/app.lds @@ -32,9 +32,14 @@ STARTUP(target/arm/imx31/crt0.o) /* Where the codec buffer ends, and the plugin buffer starts */ #define ENDADDR (ENDAUDIOADDR + CODECSIZE) +/* INIT section is the codec buffer */ +#define INITSIZE CODECSIZE +#define INITSTART ENDAUDIOADDR + MEMORY { DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE + INIT : ORIGIN = INITSTART, LENGTH = INITSIZE QHARRAY : ORIGIN = QHARRAY_PHYS_ADDR, LENGTH = QHARRAY_SIZE } @@ -97,25 +102,35 @@ SECTIONS .vectors 0x0 : { _vectorsstart = .; - *(.vectors); + *(.vectors) _vectorsend = .; } AT> DRAM _vectorscopy = LOADADDR(.vectors); + .init : + { + . = ALIGN(4); + _initstart = .; + *(.init) + *(.sdmacode) + _initend = .; + } > INIT AT> DRAM + + _initcopy = LOADADDR(.init); + .stack (NOLOAD) : { - *(.stack) - stackbegin = .; - . += 0x2000; - stackend = .; + . = ALIGN(4); + *(.stack) + stackbegin = .; + . += 0x2000; + stackend = .; } > DRAM - _sdmacodecopy = stackbegin; - .bss (NOLOAD) : { - _edata = .; + _edata = .; *(.bss*) *(.ibss) *(COMMON) @@ -158,13 +173,6 @@ SECTIONS pluginbuf = .; } - .sdma _pluginbuf : AT( _sdmacodecopy ) - { - _sdmacodestart = .; - *(.sdmacode); - _sdmacodeend = .; - } - .qharray (NOLOAD) : { _qharray = .; -- cgit v1.2.3