diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-02-16 15:17:31 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-02-16 15:17:31 +0000 |
commit | e44d7c659ba56d7efd6de10d5d99a1c44fd997fa (patch) | |
tree | b1cf54484d3258d0c5a06fe4da641b4dd1ace3e6 /libavcodec/bfin/dsputil_bfin.h | |
parent | 2d83fe90e32b39a038ce5d779a3f2a1d45059784 (diff) | |
download | ffmpeg-e44d7c659ba56d7efd6de10d5d99a1c44fd997fa.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 12125 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bfin/dsputil_bfin.h')
-rw-r--r-- | libavcodec/bfin/dsputil_bfin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/bfin/dsputil_bfin.h b/libavcodec/bfin/dsputil_bfin.h index 5731f4f53c..411c8ea73c 100644 --- a/libavcodec/bfin/dsputil_bfin.h +++ b/libavcodec/bfin/dsputil_bfin.h @@ -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 |