Commit 93f68caa authored by mru's avatar mru

ARM: cleaner selection of ELF-spefic assembler directives

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19522 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9408f491
...@@ -20,25 +20,25 @@ ...@@ -20,25 +20,25 @@
#include "config.h" #include "config.h"
.macro require8, val=1
#ifdef __ELF__ #ifdef __ELF__
.eabi_attribute 24, \val # define ELF
#else
# define ELF @
#endif #endif
.macro require8, val=1
ELF .eabi_attribute 24, \val
.endm .endm
.macro preserve8, val=1 .macro preserve8, val=1
#ifdef __ELF__ ELF .eabi_attribute 25, \val
.eabi_attribute 25, \val
#endif
.endm .endm
.macro function name, export=0 .macro function name, export=0
.if \export .if \export
.global \name .global \name
.endif .endif
#ifdef __ELF__ ELF .type \name, %function
.type \name, %function
#endif
.func \name .func \name
\name: \name:
.endm .endm
......
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