diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2013-03-28 17:41:05 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2013-03-28 17:41:05 +0000 |
commit | 082441c0c4b4a60860a60b78b9f451526c393600 (patch) | |
tree | a9e3f2cef8fa8b36e7d7100a47543afb3dbfaae6 /sys/arch/amd64/include | |
parent | dd27625163090c5e5b351e017cd1ffd03a373b5f (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/amd64/include')
-rw-r--r-- | sys/arch/amd64/include/asm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/asm.h b/sys/arch/amd64/include/asm.h index 23bd1caf3b6..880c24f1ec5 100644 --- a/sys/arch/amd64/include/asm.h +++ b/sys/arch/amd64/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.4 2012/08/22 17:19:35 pascal Exp $ */ +/* $OpenBSD: asm.h,v 1.5 2013/03/28 17:41:03 martynas Exp $ */ /* $NetBSD: asm.h,v 1.2 2003/05/02 18:05:47 yamt Exp $ */ /*- @@ -100,6 +100,9 @@ #define RCSID(x) .text; .asciz x +#define STRONG_ALIAS(alias,sym) \ + .global alias; \ + alias = sym #define WEAK_ALIAS(alias,sym) \ .weak alias; \ alias = sym |