summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2013-03-28 17:41:05 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2013-03-28 17:41:05 +0000
commit082441c0c4b4a60860a60b78b9f451526c393600 (patch)
treea9e3f2cef8fa8b36e7d7100a47543afb3dbfaae6 /sys/arch/sh
parentdd27625163090c5e5b351e017cd1ffd03a373b5f (diff)
Add STRONG_ALIAS macros to be used from assembly code in libc and
libm. While at it, remove now unused workarounds for lint. Agreed by kettenis@, guenther@, matthew@.
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/include/asm.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/sh/include/asm.h b/sys/arch/sh/include/asm.h
index e0c4afd9d65..20719ef56d4 100644
--- a/sys/arch/sh/include/asm.h
+++ b/sys/arch/sh/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.3 2012/08/22 17:19:35 pascal Exp $ */
+/* $OpenBSD: asm.h,v 1.4 2013/03/28 17:41:04 martynas Exp $ */
/* $NetBSD: asm.h,v 1.25 2006/01/20 22:02:40 christos Exp $ */
/*-
@@ -206,13 +206,12 @@
#define ASMSTR .asciz
#ifdef __ELF__
+#define STRONG_ALIAS(alias,sym) \
+ .global _C_LABEL(alias); \
+ _C_LABEL(alias) = _C_LABEL(sym)
#define WEAK_ALIAS(alias,sym) \
.weak _C_LABEL(alias); \
_C_LABEL(alias) = _C_LABEL(sym)
-
-#define STRONG_ALIAS(alias,sym) \
- .globl _C_LABEL(alias); \
- _C_LABEL(alias) = _C_LABEL(sym)
#endif
#define WARN_REFERENCES(_sym,_msg) \