diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-01-02 21:40:47 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-01-02 21:40:47 +0000 |
commit | 20683aeb89666c53f0af40343a0cc92b870a0f3f (patch) | |
tree | ab984bc3743e6ceafa124aa0d2139ac05c2480f6 /sys/arch/mvme88k | |
parent | e750c316c70105ab226f95c4a016aa4f98776321 (diff) |
Adapt to recent changes in libc/libc_r wrt weak symbols, so that programs
can link against libc without unresolved symbols again.
Anyone who correctly guessed that my m88k hard drive has been recovered,
wins a strawberry lollipop.
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 /* |