From c385d69aa93ed996ed21b58294d8ce2e1c3c9e3c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 29 Mar 2020 14:12:23 +0000 Subject: [PATCH] common: add ALIAS() macro --- arch/common/common-defs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/common/common-defs.h b/arch/common/common-defs.h index e2ebe24..0dbb89c 100644 --- a/arch/common/common-defs.h +++ b/arch/common/common-defs.h @@ -18,7 +18,7 @@ #endif #define FUNC(__proc) \ - .globl __proc; \ + .global __proc; \ .align 2; \ .type __proc, @function; \ ENT(__proc) \ @@ -29,4 +29,8 @@ __proc: \ .end __proc; \ .size __proc,.-__proc; +#define ALIAS(__alias, __real) \ + .weak __alias; \ + __alias = __real; + #endif