comparison arm/asm.S @ 9991:c50957bfd553 libavcodec

ARM: cleaner selection of ELF-spefic assembler directives
author mru
date Mon, 27 Jul 2009 22:55:55 +0000
parents 2cc65fb72572
children 78c2a3932c87
comparison
equal deleted inserted replaced
9990:e909e1f7b3f1 9991:c50957bfd553
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */ 19 */
20 20
21 #include "config.h" 21 #include "config.h"
22 22
23 #ifdef __ELF__
24 # define ELF
25 #else
26 # define ELF @
27 #endif
28
23 .macro require8, val=1 29 .macro require8, val=1
24 #ifdef __ELF__ 30 ELF .eabi_attribute 24, \val
25 .eabi_attribute 24, \val
26 #endif
27 .endm 31 .endm
28 32
29 .macro preserve8, val=1 33 .macro preserve8, val=1
30 #ifdef __ELF__ 34 ELF .eabi_attribute 25, \val
31 .eabi_attribute 25, \val
32 #endif
33 .endm 35 .endm
34 36
35 .macro function name, export=0 37 .macro function name, export=0
36 .if \export 38 .if \export
37 .global \name 39 .global \name
38 .endif 40 .endif
39 #ifdef __ELF__ 41 ELF .type \name, %function
40 .type \name, %function
41 #endif
42 .func \name 42 .func \name
43 \name: 43 \name:
44 .endm 44 .endm
45 45
46 .macro movrel rd, val 46 .macro movrel rd, val