ref: d695e0e8a6c582c761441fa88695b71441e1f15b
parent: a755541faa79832a6306ec9b9789b8919e55d8f9
author: Martin Storsjö <martin@martin.st>
date: Sun May 31 17:28:38 EDT 2020
arm: Add an export parameter to the const macro This is currently not used in dav1d (yet), but there's a need for it in rav1e, which shares this header with dav1d.
--- a/src/arm/asm.S
+++ b/src/arm/asm.S
@@ -110,7 +110,7 @@
\name:
.endm
-.macro const name, align=2
+.macro const name, export=0, align=2
.macro endconst
#ifdef __ELF__
.size \name, . - \name
@@ -125,6 +125,13 @@
.const_data
#endif
.align \align
+ .if \export
+ .global EXTERN\name
+#ifdef __ELF__
+ .hidden EXTERN\name
+#endif
+EXTERN\name:
+ .endif
\name:
.endm