mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ARM: cleaner selection of ELF-spefic assembler directives
Originally committed as revision 19522 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1aa71e258d
commit
341f394f0d
@ -20,25 +20,25 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
.macro require8, val=1
|
||||
#ifdef __ELF__
|
||||
.eabi_attribute 24, \val
|
||||
# define ELF
|
||||
#else
|
||||
# define ELF @
|
||||
#endif
|
||||
|
||||
.macro require8, val=1
|
||||
ELF .eabi_attribute 24, \val
|
||||
.endm
|
||||
|
||||
.macro preserve8, val=1
|
||||
#ifdef __ELF__
|
||||
.eabi_attribute 25, \val
|
||||
#endif
|
||||
ELF .eabi_attribute 25, \val
|
||||
.endm
|
||||
|
||||
.macro function name, export=0
|
||||
.if \export
|
||||
.global \name
|
||||
.endif
|
||||
#ifdef __ELF__
|
||||
.type \name, %function
|
||||
#endif
|
||||
ELF .type \name, %function
|
||||
.func \name
|
||||
\name:
|
||||
.endm
|
||||
|
Loading…
Reference in New Issue
Block a user