summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-02-04 23:30:19 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-02-04 23:30:19 +0000
commitede7f6216fd0fb278264f58f04de8f32b9a7d4c0 (patch)
tree1aa3792aa64d163c454022d98f4b1263abacd119 /sys
parent8d29c7fb69ee855757eafc9ed021c438f2f1481b (diff)
implement __weak_alias macro in ECOFF case too
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/include/cdefs.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/alpha/include/cdefs.h b/sys/arch/alpha/include/cdefs.h
index 05b289d79c4..034f411bd0c 100644
--- a/sys/arch/alpha/include/cdefs.h
+++ b/sys/arch/alpha/include/cdefs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cdefs.h,v 1.5 1996/10/30 22:38:56 niklas Exp $ */
+/* $OpenBSD: cdefs.h,v 1.6 1999/02/04 23:30:18 niklas Exp $ */
/* $NetBSD: cdefs.h,v 1.5 1996/10/12 18:08:12 cgd Exp $ */
/*
@@ -56,10 +56,14 @@
#else /* !__ELF__ */
/*
- * Very little to do if not ELF: we support neither indirect or
- * weak references, and don't do anything with warnings.
+ * We don't support indirect references and don't do anything with warnings.
*/
+#ifdef __STDC__
+#define __weak_alias(alias,sym) __asm__(".weakext " #alias ", " #sym)
+#else /* !__STDC__ */
+#define __weak_alias(alias,sym) __asm__(".weakext alias, sym")
+#endif /* !__STDC__ */
#define __warn_references(sym,msg) /* nothing */
#endif /* !__ELF__ */