[x264-devel] [PATCH 05/14] [RFC] arm: Skip using gas-preprocessor for iOS on arm as well
Martin Storsjö
martin at martin.st
Fri Mar 24 10:33:37 CET 2017
The few constructs that differ can easily be handled within the
source itself - tested to be working since at least Xcode 6.
---
common/arm/asm.S | 11 ++++++++++-
configure | 4 +---
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/common/arm/asm.S b/common/arm/asm.S
index 62a5e57..5fc1b14 100644
--- a/common/arm/asm.S
+++ b/common/arm/asm.S
@@ -28,6 +28,7 @@
.syntax unified
+#ifndef __APPLE__
#if HAVE_NEON
.arch armv7-a
#elif HAVE_ARMV6T2
@@ -37,6 +38,7 @@
#endif
.fpu neon
+#endif
#ifdef PREFIX
# define EXTERN_ASM _
@@ -50,6 +52,12 @@
# define ELF @
#endif
+#ifdef __MACH__
+# define MACH
+#else
+# define MACH @
+#endif
+
#if HAVE_AS_FUNC
# define FUNC
#else
@@ -99,7 +107,8 @@ ELF .size \name, . - \name
.if HAVE_SECTION_DATA_REL_RO && \relocate
.section .data.rel.ro
.else
- .section .rodata
+ELF .section .rodata
+MACH .const_data
.endif
.align \align
\name:
diff --git a/configure b/configure
index 9164d2f..15628c2 100755
--- a/configure
+++ b/configure
@@ -761,16 +761,14 @@ case $host_cpu in
;;
arm*)
ARCH="ARM"
+ AS="${AS-${CC}}"
if [ "$SYS" = MACOSX ] ; then
- AS="${AS-${SRCPATH}/tools/gas-preprocessor.pl -arch arm -- ${CC}}"
ASFLAGS="$ASFLAGS -DPREFIX -DPIC" # apple's ld doesn't support movw/movt relocations at all
# build for armv7 by default
if ! echo $CFLAGS | grep -Eq '\-arch' ; then
CFLAGS="$CFLAGS -arch armv7"
LDFLAGS="$LDFLAGS -arch armv7"
fi
- else
- AS="${AS-${CC}}"
fi
;;
aarch64)
--
2.7.4
More information about the x264-devel
mailing list