summaryrefslogtreecommitdiffstats
path: root/libswscale/internal_bfin.S
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-16 15:17:59 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-16 15:17:59 +0000
commitcee7af12b0b48c068ba169b047d4b123475c0991 (patch)
treeae9f6acf24dafa81a7d7c3243fb9559d711a9d80 /libswscale/internal_bfin.S
parent539ab7489e4b462c1595ddffe1ff3201d7f18bec (diff)
downloadmpv-cee7af12b0b48c068ba169b047d4b123475c0991.tar.bz2
mpv-cee7af12b0b48c068ba169b047d4b123475c0991.tar.xz
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/internal_bfin.S')
-rw-r--r--libswscale/internal_bfin.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/libswscale/internal_bfin.S b/libswscale/internal_bfin.S
index 475d704529..2d5c61a14a 100644
--- a/libswscale/internal_bfin.S
+++ b/libswscale/internal_bfin.S
@@ -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) \