summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-01-06 09:02:35 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-01-06 09:02:35 +0000
commit8142147ba593d62a0053608180e3978b10711dbd (patch)
treea83f4e183b78069e34dd7a01dfa055fbd37cba0d /sys/arch/i386
parentc69dbbfa18c0ff0e4148bedb617d96b74fcf7ddf (diff)
add __weak_alias() macro
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/include/cdefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/i386/include/cdefs.h b/sys/arch/i386/include/cdefs.h
index 56e5ba6f146..05a765f283d 100644
--- a/sys/arch/i386/include/cdefs.h
+++ b/sys/arch/i386/include/cdefs.h
@@ -36,4 +36,8 @@
#define __warn_references(sym,msg) /* nothing */
#endif
+#define __weak_alias(alias,sym) \
+ __asm__(".weak " _C_LABEL(alias) ";" \
+ _C_LABEL(alias) "=" _C_LABEL(sym))
+
#endif /* !_MACHINE_CDEFS_H_ */