This is currently used and supported on ELF and on Mach-O/apple.
However, on windows, the PE/COFF file format doesn't support
anything corresponding to BFD_RELOC_32_PCREL or R_ARM_REL32.
CONFIG_PIC itself gets enabled automatically by configure when
building shared libraries and the platform supports armv6t2.
---
There's no common platform define for PE/COFF like __ELF__,
so instead just list the known supported cases.
---
libavutil/arm/asm.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S
index a181789..9fe99c1 100644
--- a/libavutil/arm/asm.S
+++ b/libavutil/arm/asm.S
@@ -144,7 +144,7 @@ T ldr \rd, [\rd]
.endm
.macro movrel rd, val
-#if CONFIG_PIC
+#if CONFIG_PIC && (defined(__ELF__) || defined(__APPLE__))
ldpic \rd, \val
#elif HAVE_ARMV6T2_EXTERNAL && !defined(__APPLE__)
movw \rd, #:lower16:\val
--
1.7.9.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel