Mercurial > libavcodec.hg
diff bfin/dsputil_bfin.h @ 6362:78aa57eba353 libavcodec
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
author | diego |
---|---|
date | Sat, 16 Feb 2008 15:17:31 +0000 |
parents | 1d83e9c34641 |
children | c4a4495715dd |
line wrap: on
line diff
--- a/bfin/dsputil_bfin.h Fri Feb 15 21:01:10 2008 +0000 +++ b/bfin/dsputil_bfin.h Sat Feb 16 15:17:31 2008 +0000 @@ -24,7 +24,13 @@ #ifndef FFMPEG_DSPUTIL_BFIN_H #define FFMPEG_DSPUTIL_BFIN_H +#ifdef __FDPIC__ #define attribute_l1_text __attribute__ ((l1_text)) +#define attribute_l1_data_b __attribute__((l1_data_B)) +#else +#define attribute_l1_text +#define attribute_l1_data_b +#endif #ifdef BFIN_PROFILE