[x264-devel] aarch64: Use the const macro in the aarch64 checkasm assembly source

Martin Storsjö git at videolan.org
Mon May 22 00:01:20 CEST 2017


x264 | branch: master | Martin Storsjö <martin at martin.st> | Fri Mar 24 11:33:33 2017 +0200| [535fd2ec9985b9874d6ed23904404d0d2f5d40d6] | committer: Henrik Gramner

aarch64: Use the const macro in the aarch64 checkasm assembly source

This fixes building the source with clang for iOS without gas-preprocessor.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=535fd2ec9985b9874d6ed23904404d0d2f5d40d6
---

 tools/checkasm-aarch64.S | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/checkasm-aarch64.S b/tools/checkasm-aarch64.S
index 3d0cca8d..db4a33d4 100644
--- a/tools/checkasm-aarch64.S
+++ b/tools/checkasm-aarch64.S
@@ -25,9 +25,7 @@
 
 #include "../common/aarch64/asm.S"
 
-.section .rodata
-.align 4
-register_init:
+const register_init, align=4
 .quad 0x21f86d66c8ca00ce
 .quad 0x75b6ba21077c48ad
 .quad 0xed56bb2dcb3c7736
@@ -46,10 +44,12 @@ register_init:
 .quad 0xd229e1f5b281303f
 .quad 0x71aeaff20b095fd9
 .quad 0xab63e2e11fa38ed9
+endconst
 
 
-error_message:
+const error_message
 .asciz "failed to preserve register"
+endconst
 
 .text
 



More information about the x264-devel mailing list