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 26010 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
Mike Frysinger
2008-02-16 15:17:59 +00:00
committed by Diego Biurrun
parent e44d7c659b
commit d2a4ecafbb
3 changed files with 16 additions and 4 deletions
+5 -1
View File
@@ -94,8 +94,12 @@
*/
#define mL1 .l1.text
#define mL3 .text
#ifdef __FDPIC__
#define mL1 .l1.text
#else
#define mL1 mL3
#endif
#define MEM mL1
#define DEFUN(fname,where,interface) \