diff options
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/include/asm.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sys/arch/mvme88k/include/asm.h b/sys/arch/mvme88k/include/asm.h index 25b4ac22e63..1658923ff4c 100644 --- a/sys/arch/mvme88k/include/asm.h +++ b/sys/arch/mvme88k/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.20 2001/12/25 01:22:43 miod Exp $ */ +/* $OpenBSD: asm.h,v 1.21 2003/01/02 21:40:46 miod Exp $ */ /* * Mach Operating System @@ -62,6 +62,22 @@ #define ASBSS(name, size) \ .comm _ASM_LABEL(name), size +#ifdef __ELF__ +#define WEAK_ALIAS(alias,sym) \ + .weak alias; \ + alias = sym +#else +#ifdef __STDC__ +#define WEAK_ALIAS(alias,sym) \ + .weak _##alias; \ + _##alias = _##sym +#else +#define WEAK_ALIAS(alias,sym) \ + .weak _/**/alias; \ + _/**/alias = _/**/sym +#endif +#endif + #ifdef _KERNEL /* |