diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-02-16 15:17:59 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-02-16 15:17:59 +0000 |
commit | d2a4ecafbba2a1a5895c6c3e2e6781f9751a681d (patch) | |
tree | b173712abc82dad390018b5d5cd21091b12a171a /libswscale/yuv2rgb_bfin.c | |
parent | e44d7c659ba56d7efd6de10d5d99a1c44fd997fa (diff) | |
download | ffmpeg-d2a4ecafbba2a1a5895c6c3e2e6781f9751a681d.tar.gz |
FLAT objects cannot have multiple sections, so using the L1 attributes breaks
linking. The FDPIC relocs also break for any other format. Thus check the
compiler environment and select the appropriate sections/relocs.
patch by Mike Frysinger, vapier.adi a gmail d com
Originally committed as revision 26010 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/yuv2rgb_bfin.c')
-rw-r--r-- | libswscale/yuv2rgb_bfin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libswscale/yuv2rgb_bfin.c b/libswscale/yuv2rgb_bfin.c index e35d49efbd..d2770793bc 100644 --- a/libswscale/yuv2rgb_bfin.c +++ b/libswscale/yuv2rgb_bfin.c @@ -36,8 +36,11 @@ #include "swscale.h" #include "swscale_internal.h" - +#ifdef __FDPIC__ #define L1CODE __attribute__ ((l1_text)) +#else +#define L1CODE +#endif extern void ff_bfin_yuv2rgb555_line (uint8_t *Y, uint8_t *U, uint8_t *V, uint8_t *out, int w, uint32_t *coeffs) L1CODE; |