diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2009-03-02 00:16:44 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2009-03-02 00:16:44 +0000 |
| commit | c21e2e686fce7a7df5a933fd3bf06aa20e66c78b (patch) | |
| tree | 483500a54064c878fd12196ca7fd1fad1177c064 /apps/plugins/plugin.lds | |
| parent | ce1c189d509b1b88044f9821fa36f2461af07219 (diff) | |
| download | rockbox-c21e2e686fce7a7df5a933fd3bf06aa20e66c78b.zip rockbox-c21e2e686fce7a7df5a933fd3bf06aa20e66c78b.tar.gz rockbox-c21e2e686fce7a7df5a933fd3bf06aa20e66c78b.tar.bz2 rockbox-c21e2e686fce7a7df5a933fd3bf06aa20e66c78b.tar.xz | |
Calculate the optimal memory location for overlay plugins, and use 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
Diffstat (limited to 'apps/plugins/plugin.lds')
| -rw-r--r-- | apps/plugins/plugin.lds | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index ccf6010..e7ed9b1 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -125,7 +125,10 @@ OUTPUT_FORMAT(elf32-littlemips) #ifdef CODEC #define THIS_LENGTH CODEC_SIZE #define THIS_ORIGIN CODEC_ORIGIN -#else +#elif defined OVERLAY_OFFSET +#define THIS_LENGTH (DRAMSIZE - OVERLAY_OFFSET) +#define THIS_ORIGIN (DRAMORIG + OVERLAY_OFFSET) +#else /* plugin */ #define THIS_LENGTH PLUGIN_LENGTH #define THIS_ORIGIN PLUGIN_ORIGIN #endif |