From cee7af12b0b48c068ba169b047d4b123475c0991 Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 16 Feb 2008 15:17:59 +0000 Subject: 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26010 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/yuv2rgb_bfin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libswscale/yuv2rgb_bfin.c') 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; -- cgit v1.2.3