summaryrefslogtreecommitdiff
path: root/tools/ovl_offset.pl
AgeCommit message (Collapse)Author
2013-07-11Fix .ncbss from possibly overlapping .ncdata in plugins/codecs.Michael Sevakis
(Take #2) If .bss wasn't large enough, and .ncdata was empty, .ncbss would be at an address overlapping the alignment-padded end of .ncdata and and linking would fail with an overlap error. Adds plugin load end address that accounts for IRAM going past the final .bss sections, making IRAM overlay compatible. load_code could also use this instead of the file size. The .lds becomes a bit more straightforward and explicit when assigning addresses. Change-Id: Id0c33f257710e97ece2c831e0feaaa32c1a14e05
2012-05-19Make overlay plugins work again.Frank Gevaerts
Overlay plugins got broken because ovl_offset.pl assumes the audio buffer ends where the plugin buffer starts. Buflib however keeps its handle table there, so there are a few hundred bytes fewer available, so loading the overlay fails. We work around this by linking the overlay at a slightly lower address (1024 bytes lower). If the handle table ever grows more than that, overlays will start failing again and we either need a different solution or increase the margin a bit. Change-Id: Id98cb52da2c8c4a4bc773362a46f646774112f85
2009-03-02Set x bit aka fix red...Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20164 a1c6a512-1295-4272-9138-f99709370657
2009-03-02Calculate the optimal memory location for overlay plugins, and use ↵Jens Arnold
plugin.lds for linking them. This gets rid of hand-adjusted archos.lds, making it easy to use overlay plugins on other lowmem targets. * Fix some duplicate and incorrect dependencies. * Change the way libs are filtered, so that a lib can be specified more than once. This allows to get rid of explicitly linking gcc-support.o, fixing empty plugins on some simulator platforms. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20163 a1c6a512-1295-4272-9138-f99709370657