diff options
-rw-r--r-- | sys/arch/alpha/include/cdefs.h | 11 | ||||
-rw-r--r-- | sys/arch/amd64/include/cdefs.h | 19 | ||||
-rw-r--r-- | sys/arch/arm/include/cdefs.h | 19 | ||||
-rw-r--r-- | sys/arch/hppa/include/cdefs.h | 19 | ||||
-rw-r--r-- | sys/arch/hppa64/include/cdefs.h | 19 | ||||
-rw-r--r-- | sys/arch/i386/include/cdefs.h | 11 | ||||
-rw-r--r-- | sys/arch/ia64/include/cdefs.h | 19 | ||||
-rw-r--r-- | sys/arch/loongson/include/cdefs.h | 7 | ||||
-rw-r--r-- | sys/arch/m68k/include/cdefs.h | 11 | ||||
-rw-r--r-- | sys/arch/m88k/include/cdefs.h | 11 | ||||
-rw-r--r-- | sys/arch/mips64/include/cdefs.h | 12 | ||||
-rw-r--r-- | sys/arch/octeon/include/cdefs.h | 7 | ||||
-rw-r--r-- | sys/arch/powerpc/include/cdefs.h | 11 | ||||
-rw-r--r-- | sys/arch/sgi/include/cdefs.h | 7 | ||||
-rw-r--r-- | sys/arch/sh/include/cdefs.h | 19 | ||||
-rw-r--r-- | sys/arch/sparc/include/cdefs.h | 11 | ||||
-rw-r--r-- | sys/arch/sparc64/include/cdefs.h | 11 | ||||
-rw-r--r-- | sys/arch/vax/include/cdefs.h | 10 |
18 files changed, 86 insertions, 148 deletions
diff --git a/sys/arch/alpha/include/cdefs.h b/sys/arch/alpha/include/cdefs.h index ed3bbf775f2..9da291c92f2 100644 --- a/sys/arch/alpha/include/cdefs.h +++ b/sys/arch/alpha/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.10 2006/01/10 00:04:03 millert Exp $ */ +/* $OpenBSD: cdefs.h,v 1.11 2013/03/28 17:30:45 martynas Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -30,17 +30,14 @@ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__STDC__) +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " \ + __STRING(alias) " = " __STRING(sym)) #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " \ __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_MACHINE_CDEFS_H_ */ diff --git a/sys/arch/amd64/include/cdefs.h b/sys/arch/amd64/include/cdefs.h index b7f57f8c946..eb243a33d45 100644 --- a/sys/arch/amd64/include/cdefs.h +++ b/sys/arch/amd64/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.2 2005/11/24 20:46:44 deraadt Exp $ */ +/* $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $ */ /* * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. @@ -8,17 +8,14 @@ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) -#define __weak_alias(alias,sym) \ - __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " __STRING(alias) \ " = " __STRING(sym)) -#define __warn_references(sym,msg) \ - __asm__(".section .gnu.warning." __STRING(sym) \ +#define __weak_alias(alias,sym) \ + __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ + " = " __STRING(sym)) +#define __warn_references(sym,msg) \ + __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_MACHINE_CDEFS_H_ */ diff --git a/sys/arch/arm/include/cdefs.h b/sys/arch/arm/include/cdefs.h index b903dd9d60c..34ca3f38273 100644 --- a/sys/arch/arm/include/cdefs.h +++ b/sys/arch/arm/include/cdefs.h @@ -1,19 +1,16 @@ -/* $OpenBSD: cdefs.h,v 1.3 2011/03/23 16:54:34 pirofti Exp $ */ +/* $OpenBSD: cdefs.h,v 1.4 2013/03/28 17:30:45 martynas Exp $ */ #ifndef _ARM_CDEFS_H_ #define _ARM_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) -#define __weak_alias(alias,sym) \ - __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " __STRING(alias) \ " = " __STRING(sym)) -#define __warn_references(sym,msg) \ - __asm__(".section .gnu.warning." __STRING(sym) \ +#define __weak_alias(alias,sym) \ + __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ + " = " __STRING(sym)) +#define __warn_references(sym,msg) \ + __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_ARM_CDEFS_H_ */ diff --git a/sys/arch/hppa/include/cdefs.h b/sys/arch/hppa/include/cdefs.h index 1a24e7e33ff..6fae9372f5e 100644 --- a/sys/arch/hppa/include/cdefs.h +++ b/sys/arch/hppa/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.9 2011/11/10 23:15:11 deraadt Exp $ */ +/* $OpenBSD: cdefs.h,v 1.10 2013/03/28 17:30:45 martynas Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -30,17 +30,14 @@ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) -#define __weak_alias(alias,sym) \ - __asm__(".export " __STRING(alias) ", entry\n\t.weak " \ +#define __strong_alias(alias,sym) \ + __asm__(".export " __STRING(alias) ", entry\n\t.global " \ __STRING(alias) "\n\t" __STRING(alias) " = " __STRING(sym)) -#define __warn_references(sym,msg) \ - __asm__(".section .gnu.warning." __STRING(sym) \ +#define __weak_alias(alias,sym) \ + __asm__(".export " __STRING(alias) ", entry\n\t.weak " \ + __STRING(alias) "\n\t" __STRING(alias) " = " __STRING(sym)) +#define __warn_references(sym,msg) \ + __asm__(".section .gnu.warning." __STRING(sym) \ "\n\t.ascii \"" msg "\"\n\t.text") -#endif #endif /* !_MACHINE_CDEFS_H_ */ diff --git a/sys/arch/hppa64/include/cdefs.h b/sys/arch/hppa64/include/cdefs.h index 56eba5e4377..a4416400ba9 100644 --- a/sys/arch/hppa64/include/cdefs.h +++ b/sys/arch/hppa64/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.2 2005/11/24 20:46:45 deraadt Exp $ */ +/* $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -30,17 +30,14 @@ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) -#define __weak_alias(alias,sym) \ - __asm__(".export " __STRING(alias) ", entry\n\t.weak " \ +#define __strong_alias(alias,sym) \ + __asm__(".export " __STRING(alias) ", entry\n\t.global " \ __STRING(alias) "\n\t" __STRING(alias) " = " __STRING(sym)) -#define __warn_references(sym,msg) \ - __asm__(".section .gnu.warning." __STRING(sym) \ +#define __weak_alias(alias,sym) \ + __asm__(".export " __STRING(alias) ", entry\n\t.weak " \ + __STRING(alias) "\n\t" __STRING(alias) " = " __STRING(sym)) +#define __warn_references(sym,msg) \ + __asm__(".section .gnu.warning." __STRING(sym) \ "\n\t.ascii \"" msg "\"\n\t.text") -#endif #endif /* !_MACHINE_CDEFS_H_ */ diff --git a/sys/arch/i386/include/cdefs.h b/sys/arch/i386/include/cdefs.h index 34b9f77ca6f..dab21a5becc 100644 --- a/sys/arch/i386/include/cdefs.h +++ b/sys/arch/i386/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.9 2005/11/24 20:46:45 deraadt Exp $ */ +/* $OpenBSD: cdefs.h,v 1.10 2013/03/28 17:30:45 martynas Exp $ */ /* * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. @@ -8,17 +8,14 @@ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " \ + __STRING(alias) " = " __STRING(sym)) #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " \ __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_MACHINE_CDEFS_H_ */ diff --git a/sys/arch/ia64/include/cdefs.h b/sys/arch/ia64/include/cdefs.h index 20015b5ae66..6e89cbe35e1 100644 --- a/sys/arch/ia64/include/cdefs.h +++ b/sys/arch/ia64/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.1 2011/07/04 23:29:08 pirofti Exp $ */ +/* $OpenBSD: cdefs.h,v 1.2 2013/03/28 17:30:45 martynas Exp $ */ /* * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. @@ -8,17 +8,14 @@ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) -#define __weak_alias(alias,sym) \ - __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " __STRING(alias) \ " = " __STRING(sym)) -#define __warn_references(sym,msg) \ - __asm__(".section .gnu.warning." __STRING(sym) \ +#define __weak_alias(alias,sym) \ + __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ + " = " __STRING(sym)) +#define __warn_references(sym,msg) \ + __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_MACHINE_CDEFS_H_ */ diff --git a/sys/arch/loongson/include/cdefs.h b/sys/arch/loongson/include/cdefs.h index 386909009ab..61caa1e2c3c 100644 --- a/sys/arch/loongson/include/cdefs.h +++ b/sys/arch/loongson/include/cdefs.h @@ -1,8 +1,3 @@ -/* $OpenBSD: cdefs.h,v 1.1 2009/07/31 09:28:41 miod Exp $ */ +/* $OpenBSD: cdefs.h,v 1.2 2013/03/28 17:30:45 martynas Exp $ */ /* public domain */ #include <mips64/cdefs.h> - -#if defined(lint) && !defined(__MIPSEL__) -#define __MIPSEL__ -#undef __MIPSEB__ -#endif diff --git a/sys/arch/m68k/include/cdefs.h b/sys/arch/m68k/include/cdefs.h index 8cfc0ed5f10..44374d27d64 100644 --- a/sys/arch/m68k/include/cdefs.h +++ b/sys/arch/m68k/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.10 2013/02/02 13:32:06 miod Exp $ */ +/* $OpenBSD: cdefs.h,v 1.11 2013/03/28 17:30:45 martynas Exp $ */ /* * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. @@ -8,17 +8,14 @@ #ifndef _M68K_CDEFS_H_ #define _M68K_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " \ + __STRING(alias) " = " __STRING(sym)) #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " \ __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_M68K_CDEFS_H_ */ diff --git a/sys/arch/m88k/include/cdefs.h b/sys/arch/m88k/include/cdefs.h index 054b683ff30..5dbdd668517 100644 --- a/sys/arch/m88k/include/cdefs.h +++ b/sys/arch/m88k/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.5 2013/01/05 11:20:56 miod Exp $ */ +/* $OpenBSD: cdefs.h,v 1.6 2013/03/28 17:30:45 martynas Exp $ */ /* * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. @@ -8,17 +8,14 @@ #ifndef _M88K_CDEFS_H_ #define _M88K_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " \ + __STRING(alias) " = " __STRING(sym)) #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " \ __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* _M88K_CDEFS_H_ */ diff --git a/sys/arch/mips64/include/cdefs.h b/sys/arch/mips64/include/cdefs.h index d2db0bc7aee..b16a3e72abd 100644 --- a/sys/arch/mips64/include/cdefs.h +++ b/sys/arch/mips64/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.5 2011/03/23 16:54:36 pirofti Exp $ */ +/* $OpenBSD: cdefs.h,v 1.6 2013/03/28 17:30:45 martynas Exp $ */ /* * Copyright (c) 2002-2003 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -26,15 +26,12 @@ * */ - #ifndef _MIPS64_CDEFS_H_ #define _MIPS64_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " \ + __STRING(alias) " = " __STRING(sym)) #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " \ __STRING(alias) " = " __STRING(sym)) @@ -42,6 +39,5 @@ __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") #define __indr_references(sym,msg) /* nothing */ -#endif #endif /* !_MIPS64_CDEFS_H_ */ diff --git a/sys/arch/octeon/include/cdefs.h b/sys/arch/octeon/include/cdefs.h index a89568167fb..61caa1e2c3c 100644 --- a/sys/arch/octeon/include/cdefs.h +++ b/sys/arch/octeon/include/cdefs.h @@ -1,8 +1,3 @@ -/* $OpenBSD: cdefs.h,v 1.1 2010/09/20 06:32:30 syuu Exp $ */ +/* $OpenBSD: cdefs.h,v 1.2 2013/03/28 17:30:45 martynas Exp $ */ /* public domain */ #include <mips64/cdefs.h> - -#if defined(lint) && !defined(__MIPSEB__) -#define __MIPSEB__ -#undef __MIPSEL__ -#endif diff --git a/sys/arch/powerpc/include/cdefs.h b/sys/arch/powerpc/include/cdefs.h index 46bcc566a9c..7c0f235bec6 100644 --- a/sys/arch/powerpc/include/cdefs.h +++ b/sys/arch/powerpc/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.6 2006/01/10 00:04:04 millert Exp $ */ +/* $OpenBSD: cdefs.h,v 1.7 2013/03/28 17:30:45 martynas Exp $ */ /* * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. @@ -8,17 +8,14 @@ #ifndef _POWERPC_CDEFS_H_ #define _POWERPC_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " \ + __STRING(alias) " = " __STRING(sym)) #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " \ __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_POWERPC_CDEFS_H_ */ diff --git a/sys/arch/sgi/include/cdefs.h b/sys/arch/sgi/include/cdefs.h index 482bc55fea0..1b97c99ec72 100644 --- a/sys/arch/sgi/include/cdefs.h +++ b/sys/arch/sgi/include/cdefs.h @@ -1,10 +1,5 @@ -/* $OpenBSD: cdefs.h,v 1.2 2005/11/24 20:46:48 deraadt Exp $ */ +/* $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $ */ /* Use Mips generic include file */ #include <mips64/cdefs.h> - -#if defined(lint) && !defined(__MIPSEB__) -#define __MIPSEB__ -#undef __MIPSEL__ -#endif diff --git a/sys/arch/sh/include/cdefs.h b/sys/arch/sh/include/cdefs.h index 73afa518b3a..3365bf9693a 100644 --- a/sys/arch/sh/include/cdefs.h +++ b/sys/arch/sh/include/cdefs.h @@ -1,19 +1,16 @@ -/* $OpenBSD: cdefs.h,v 1.1 2006/10/06 21:02:55 miod Exp $ */ +/* $OpenBSD: cdefs.h,v 1.2 2013/03/28 17:30:45 martynas Exp $ */ #ifndef _SH_CDEFS_H_ #define _SH_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) -#define __weak_alias(alias,sym) \ - __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " __STRING(alias) \ " = " __STRING(sym)) -#define __warn_references(sym,msg) \ - __asm__(".section .gnu.warning." __STRING(sym) \ +#define __weak_alias(alias,sym) \ + __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ + " = " __STRING(sym)) +#define __warn_references(sym,msg) \ + __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_SH_CDEFS_H_ */ diff --git a/sys/arch/sparc/include/cdefs.h b/sys/arch/sparc/include/cdefs.h index c033736055c..6fb0633d2d1 100644 --- a/sys/arch/sparc/include/cdefs.h +++ b/sys/arch/sparc/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.10 2006/01/10 00:04:04 millert Exp $ */ +/* $OpenBSD: cdefs.h,v 1.11 2013/03/28 17:30:45 martynas Exp $ */ /* * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. @@ -8,17 +8,14 @@ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " \ + __STRING(alias) " = " __STRING(sym)) #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " \ __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_MACHINE_CDEFS_H_ */ diff --git a/sys/arch/sparc64/include/cdefs.h b/sys/arch/sparc64/include/cdefs.h index 93df14543e5..ca866af4418 100644 --- a/sys/arch/sparc64/include/cdefs.h +++ b/sys/arch/sparc64/include/cdefs.h @@ -1,19 +1,16 @@ -/* $OpenBSD: cdefs.h,v 1.3 2005/11/24 20:46:48 deraadt Exp $ */ +/* $OpenBSD: cdefs.h,v 1.4 2013/03/28 17:30:45 martynas Exp $ */ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " \ + __STRING(alias) " = " __STRING(sym)) #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " \ __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." __STRING(sym) \ " ; .ascii \"" msg "\" ; .text") -#endif #endif /* !_MACHINE_CDEFS_H_ */ diff --git a/sys/arch/vax/include/cdefs.h b/sys/arch/vax/include/cdefs.h index 8ed566d7b89..64646df2add 100644 --- a/sys/arch/vax/include/cdefs.h +++ b/sys/arch/vax/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.7 2006/01/10 00:04:04 millert Exp $ */ +/* $OpenBSD: cdefs.h,v 1.8 2013/03/28 17:30:45 martynas Exp $ */ /* * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. @@ -8,19 +8,15 @@ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -#if defined(lint) -#define __indr_reference(sym,alias) __lint_equal__(sym,alias) -#define __warn_references(sym,msg) -#define __weak_alias(alias,sym) __lint_equal__(sym,alias) -#elif defined(__GNUC__) && defined(__STDC__) #define __indr_reference(sym,alias) \ __asm__(".stabs \"_" #alias "\",11,0,0,0"); \ __asm__(".stabs \"_" #sym "\",1,0,0,0") #define __warn_references(sym,msg) \ __asm__(".stabs \"" msg "\",30,0,0,0"); \ __asm__(".stabs \"_" #sym "\",1,0,0,0") +#define __strong_alias(alias,sym) \ + __asm__(".global _" #alias "; _" #alias "= _" __STRING(sym)) #define __weak_alias(alias,sym) \ __asm__(".weak _" #alias "; _" #alias "= _" __STRING(sym)) -#endif #endif /* !_MACHINE_CDEFS_H_ */ |