summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/app.lds
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-03 17:39:39 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-05 03:34:30 +0000
commitcd9906847b7a8eaccc4e5927200cd75db99d219f (patch)
tree0e18a4687c1307b07f0caacc2d1e8ab65d2e298c /firmware/target/arm/imx233/app.lds
parent905e19905b8601b672ed9a9b7121dfdb2444602c (diff)
downloadrockbox-cd9906847b7a8eaccc4e5927200cd75db99d219f.tar.gz
rockbox-cd9906847b7a8eaccc4e5927200cd75db99d219f.zip
arm: Fix PortalPlayer linker scripts with binutils 2.21+
For reasons that are still unclear, the 'ncbss' region was overlapping the "audiobuffer" when linked with 2.21, but okay with 2.20. Fixed it by making the audiobuffer explcitly use the current position instead of relying on it being implicit. With this change, portalplayer-based targets generate working binaries when built with binutils 2.21 or newer. This bug also theoretically affects imx233/imx31 targets as they also have NOCACHE_BASE games in their linker scripts, but I lack access to one to test with. Change-Id: Idb38ab20f03599b9ed3d4bc0eafe519f38677438
Diffstat (limited to 'firmware/target/arm/imx233/app.lds')
-rw-r--r--firmware/target/arm/imx233/app.lds2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/app.lds b/firmware/target/arm/imx233/app.lds
index 189355d84e..2b13496c1f 100644
--- a/firmware/target/arm/imx233/app.lds
+++ b/firmware/target/arm/imx233/app.lds
@@ -116,7 +116,7 @@ SECTIONS
_end = .;
} > DRAM
- .audiobuf (NOLOAD) :
+ .audiobuf _end (NOLOAD) :
{
_audiobuffer = .;
audiobuffer = .;