summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-01-02 21:40:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-01-02 21:40:47 +0000
commit20683aeb89666c53f0af40343a0cc92b870a0f3f (patch)
treeab984bc3743e6ceafa124aa0d2139ac05c2480f6 /sys/arch/mvme88k
parente750c316c70105ab226f95c4a016aa4f98776321 (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.h18
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
/*