comparison 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
comparison
equal deleted inserted replaced
6361:3d999e9c2093 6362:78aa57eba353
22 22
23 23
24 #ifndef FFMPEG_DSPUTIL_BFIN_H 24 #ifndef FFMPEG_DSPUTIL_BFIN_H
25 #define FFMPEG_DSPUTIL_BFIN_H 25 #define FFMPEG_DSPUTIL_BFIN_H
26 26
27 #ifdef __FDPIC__
27 #define attribute_l1_text __attribute__ ((l1_text)) 28 #define attribute_l1_text __attribute__ ((l1_text))
29 #define attribute_l1_data_b __attribute__((l1_data_B))
30 #else
31 #define attribute_l1_text
32 #define attribute_l1_data_b
33 #endif
28 34
29 #ifdef BFIN_PROFILE 35 #ifdef BFIN_PROFILE
30 36
31 static double Telem[16]; 37 static double Telem[16];
32 static char *TelemNames[16]; 38 static char *TelemNames[16];