summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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_ */