diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-16 15:17:59 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-16 15:17:59 +0000 |
commit | cee7af12b0b48c068ba169b047d4b123475c0991 (patch) | |
tree | ae9f6acf24dafa81a7d7c3243fb9559d711a9d80 /libswscale/swscale_bfin.c | |
parent | 539ab7489e4b462c1595ddffe1ff3201d7f18bec (diff) |
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
Diffstat (limited to 'libswscale/swscale_bfin.c')
-rw-r--r-- | libswscale/swscale_bfin.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libswscale/swscale_bfin.c b/libswscale/swscale_bfin.c index 763a005d90..bbc304dfe3 100644 --- a/libswscale/swscale_bfin.c +++ b/libswscale/swscale_bfin.c @@ -34,14 +34,19 @@ #include "swscale.h" #include "swscale_internal.h" +#ifdef __FDPIC__ +#define L1CODE __attribute__ ((l1_text)) +#else +#define L1CODE +#endif extern int ff_bfin_uyvytoyv12 (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, - long lumStride, long chromStride, long srcStride) __attribute__ ((l1_text)); + long lumStride, long chromStride, long srcStride) L1CODE; extern int ff_bfin_yuyvtoyv12 (const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, - long lumStride, long chromStride, long srcStride) __attribute__ ((l1_text)); + long lumStride, long chromStride, long srcStride) L1CODE; static int uyvytoyv12_unscaled (SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]) |