From 2b02cbe1ccbf2fcdcc164c6a4139f6666aed23c9 Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Wed, 15 Jan 2014 23:43:10 +0100 Subject: [PATCH] imx233: fix app.lds to properly support INIT_ATTR Change-Id: I1a917511e7e1540856815c77c4d996d1b8a03606 Reviewed-on: http://gerrit.rockbox.org/725 Reviewed-by: Amaury Pouly --- firmware/target/arm/imx233/app.lds | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/firmware/target/arm/imx233/app.lds b/firmware/target/arm/imx233/app.lds index b378f9ea16..d4ca97ff5f 100644 --- a/firmware/target/arm/imx233/app.lds +++ b/firmware/target/arm/imx233/app.lds @@ -47,6 +47,20 @@ SECTIONS *(.rodata*) } > DRAM + .dramcopyend (NOLOAD) : + { + _dramcopyend = .; + } > DRAM + + .init ENDAUDIOADDR : + { + _initstart = .; + *(.init*) + _initend = .; + } AT> DRAM + + _initcopy = LOADADDR(.init); + .itext : { _iramstart = .; // always 0 @@ -68,21 +82,7 @@ SECTIONS _iend = .; } > IRAM - .init ENDAUDIOADDR : - { - _initstart = .; - *(.init*) - _initend = .; - } AT> DRAM - - _initcopy = LOADADDR(.init); - - .dramcopyend (NOLOAD) : - { - _dramcopyend = .; - } > DRAM - - .stack (NOLOAD) : + .stack _dramcopyend (NOLOAD) : { *(.stack) stackbegin = .;