Don't include the .bss and .ibss sections in the binary image for codecs and plugins. Saves quite some disk space (and buffer space in case of codec changes during playback).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8308 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-01-08 22:50:14 +00:00
parent e8b1787296
commit 07c4254135
13 changed files with 70 additions and 24 deletions

View file

@ -21,10 +21,12 @@
#include "libm4a/m4a.h"
#include "libalac/decomp.h"
#ifndef SIMULATOR
#ifdef USE_IRAM
extern char iramcopy[];
extern char iramstart[];
extern char iramend[];
extern char iedata[];
extern char iend[];
#endif
int32_t outputbuffer[ALAC_MAX_CHANNELS][ALAC_BLOCKSIZE] IBSS_ATTR;
@ -53,8 +55,9 @@ enum codec_status codec_start(struct codec_api* api)
rb = api;
ci = (struct codec_api*)api;
#ifndef SIMULATOR
#ifdef USE_IRAM
rb->memcpy(iramstart, iramcopy, iramend-iramstart);
rb->memset(iedata, 0, iend - iedata);
#endif
ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512));