common: add ALIAS() macro

pull/17/head
Ariadne Conill 2020-03-29 14:12:23 +00:00
parent fd32a2fa8c
commit c385d69aa9
1 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,7 @@
#endif #endif
#define FUNC(__proc) \ #define FUNC(__proc) \
.globl __proc; \ .global __proc; \
.align 2; \ .align 2; \
.type __proc, @function; \ .type __proc, @function; \
ENT(__proc) \ ENT(__proc) \
@ -29,4 +29,8 @@ __proc: \
.end __proc; \ .end __proc; \
.size __proc,.-__proc; .size __proc,.-__proc;
#define ALIAS(__alias, __real) \
.weak __alias; \
__alias = __real;
#endif #endif