summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/include/cdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme88k/include/cdefs.h')
-rw-r--r--sys/arch/mvme88k/include/cdefs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/mvme88k/include/cdefs.h b/sys/arch/mvme88k/include/cdefs.h
index 23719a7b7fd..78a135d1823 100644
--- a/sys/arch/mvme88k/include/cdefs.h
+++ b/sys/arch/mvme88k/include/cdefs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cdefs.h,v 1.9 2001/11/09 00:05:00 miod Exp $ */
+/* $OpenBSD: cdefs.h,v 1.10 2002/06/10 16:56:27 fgsch Exp $ */
/* $NetBSD: cdefs.h,v 1.2 1995/03/23 20:10:48 jtc Exp $ */
/*
@@ -23,6 +23,8 @@
#define __warn_references(sym,msg) \
__asm__(".stabs \"" msg "\",30,0,0,0"); \
__asm__(".stabs \"_" #sym "\",1,0,0,0")
+#define __weak_alias(alias,sym) \
+ __asm__(".weak _" #alias "; _" #alias "= _" __STRING(sym))
#else
#define __indr_reference(sym,alias) \
__asm__(".stabs \"_/**/alias\",11,0,0,0"); \
@@ -30,6 +32,8 @@
#define __warn_references(sym,msg) \
__asm__(".stabs msg,30,0,0,0"); \
__asm__(".stabs \"_/**/sym\",1,0,0,0")
+#define __weak_alias(alias,sym) \
+ __asm__(".weak _/**/alias; _/**/alias = _/**/sym")
#endif
#endif