summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-10 16:56:28 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-10 16:56:28 +0000
commit009ace36f318543429a84b12de19fc52464d0cfa (patch)
tree166fb8ce729cbda0c0d71deb509c173cdbbd4f54 /sys
parente996cfb85caaac21552c3258903556e1949af9c3 (diff)
add __weak_alias define; miod@ ok
Diffstat (limited to 'sys')
-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