summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/include/asm.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/alpha/include/asm.h b/sys/arch/alpha/include/asm.h
index 44b9a2353da..24d9abd39b6 100644
--- a/sys/arch/alpha/include/asm.h
+++ b/sys/arch/alpha/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.11 2012/09/21 13:58:48 naddy Exp $ */
+/* $OpenBSD: asm.h,v 1.12 2013/03/28 17:41:03 martynas Exp $ */
/* $NetBSD: asm.h,v 1.23 2000/06/23 12:18:45 kleink Exp $ */
/*
@@ -614,9 +614,13 @@ label: ASCIZ msg; \
ldgp gp, 0(reg)
/*
- * WEAK_ALIAS: create a weak alias (ELF only).
+ * STRONG_ALIAS, WEAK_ALIAS
+ * Create a strong or weak alias.
*/
#ifdef __ELF__
+#define STRONG_ALIAS(alias,sym) \
+ .global alias; \
+ alias = sym
#define WEAK_ALIAS(alias,sym) \
.weak alias; \
alias = sym