Commit 588cbf94 authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

arm: Fix the movrel macro for Apple with PIC

parent 9824c5d9
......@@ -33,7 +33,20 @@
#include "src/arm/asm.S"
.macro movrel rd, val
#if defined(PIC)
#if defined(PIC) && defined(__APPLE__)
ldr \rd, 1f
b 2f
1:
@ FIXME: thumb
.word 3f - (2f + 8)
2:
ldr \rd, [pc, \rd]
.non_lazy_symbol_pointer
3:
.indirect_symbol \val
.word 0
.text
#elif defined(PIC)
ldr \rd, 1f
b 2f
1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment