|
|
@@ -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__ |
|
|
|
|
|
.eabi_attribute 25, \val |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
ELF .eabi_attribute 25, \val |
|
|
.endm |
|
|
.endm |
|
|
|
|
|
|
|
|
.macro function name, export=0 |
|
|
.macro function name, export=0 |
|
|
.if \export |
|
|
.if \export |
|
|
.global \name |
|
|
.global \name |
|
|
.endif |
|
|
.endif |
|
|
#ifdef __ELF__ |
|
|
|
|
|
.type \name, %function |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
ELF .type \name, %function |
|
|
.func \name |
|
|
.func \name |
|
|
\name: |
|
|
\name: |
|
|
.endm |
|
|
.endm |
|
|
|