OSDN Git Service

ARM: add helper macro for declaring constant data
authorMans Rullgard <mans@mansr.com>
Wed, 26 Jan 2011 22:26:51 +0000 (22:26 +0000)
committerMans Rullgard <mans@mansr.com>
Wed, 2 Feb 2011 11:35:51 +0000 (11:35 +0000)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/arm/asm.S

index e050783..cf73a77 100644 (file)
@@ -50,6 +50,16 @@ ELF     .type   \name, %function
 \name:
 .endm
 
+.macro  const   name, align=2
+    .macro endconst
+ELF     .size   \name, . - \name
+        .purgem endconst
+    .endm
+        .section        .rodata
+        .align          \align
+\name:
+.endm
+
 .macro  mov32   rd, val
 #if HAVE_ARMV6T2
         movw            \rd, #(\val) & 0xffff