xref: /openbsd/sys/arch/powerpc/include/cdefs.h (revision 09467b48)
1 /*	$OpenBSD: cdefs.h,v 1.7 2013/03/28 17:30:45 martynas Exp $	*/
2 
3 /*
4  * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
5  * Public domain.
6  */
7 
8 #ifndef	_POWERPC_CDEFS_H_
9 #define	_POWERPC_CDEFS_H_
10 
11 #define __strong_alias(alias,sym)			\
12 	__asm__(".global " __STRING(alias) " ; "	\
13 	    __STRING(alias) " = " __STRING(sym))
14 #define __weak_alias(alias,sym)				\
15 	__asm__(".weak " __STRING(alias) " ; "		\
16 	    __STRING(alias) " = " __STRING(sym))
17 #define	__warn_references(sym,msg)			\
18 	__asm__(".section .gnu.warning." __STRING(sym)	\
19 	    " ; .ascii \"" msg "\" ; .text")
20 
21 #endif /* !_POWERPC_CDEFS_H_ */
22