shithub: dav1d

Download patch

ref: c02ec6cffb864fb54d27b61e7c72e40946e301be
parent: a1647a59bdba00a2b7385f4e345804a6399703b8
author: Martin Storsjö <martin@martin.st>
date: Sat Nov 9 12:33:39 EST 2019

arm: 32: Use more unique temporary labels within movrel_local

Otherwise the macro would interfere with local labels 1 and 2
in the context where the macro is expanded.

--- a/src/arm/32/util.S
+++ b/src/arm/32/util.S
@@ -34,11 +34,11 @@
 
 .macro movrel_local rd, val, offset=0
 #if defined(PIC)
-        ldr             \rd,  1f
-        b               2f
-1:
-        .word           \val + \offset - (2f + 8 - 4 * CONFIG_THUMB)
-2:
+        ldr             \rd,  90001f
+        b               90002f
+90001:
+        .word           \val + \offset - (90002f + 8 - 4 * CONFIG_THUMB)
+90002:
         add             \rd,  \rd,  pc
 #else
         movw            \rd, #:lower16:\val+\offset