summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-11-05 18:04:37 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-11-05 18:04:37 +0000
commit3fce989a20d32b00353a98594a33df05a96e0e75 (patch)
tree37a3da016498b6346c058edae1e608a21c6f217e /sys/arch/vax
parentad55f235f85b31b758e887ada54533a8f24dca3a (diff)
Add a WEAK_ALIAS macro, to be used by libc/libc_r shortly.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/include/asm.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/arch/vax/include/asm.h b/sys/arch/vax/include/asm.h
index 353b49ad79d..4752c522991 100644
--- a/sys/arch/vax/include/asm.h
+++ b/sys/arch/vax/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.6 2001/04/09 01:01:25 hugh Exp $ */
+/* $OpenBSD: asm.h,v 1.7 2002/11/05 18:04:36 miod Exp $ */
/* $NetBSD: asm.h,v 1.9 1999/01/15 13:31:28 bouyer Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -102,10 +102,20 @@
#define ALTENTRY(x) .globl _C_LABEL(x); _C_LABEL(x):
#define RCSID(x) .text; .asciz x
-#ifdef __ELF__
+#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 __STDC__