xref: /openbsd-src/sys/arch/powerpc/include/cdefs.h (revision 06eb0ea538b7c2c8265158b2be62dba3ac3dff91)
1*06eb0ea5Smartynas /*	$OpenBSD: cdefs.h,v 1.7 2013/03/28 17:30:45 martynas Exp $	*/
247bc79e1Srahnds 
347bc79e1Srahnds /*
447bc79e1Srahnds  * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
547bc79e1Srahnds  * Public domain.
647bc79e1Srahnds  */
747bc79e1Srahnds 
852c13d20Sdrahn #ifndef	_POWERPC_CDEFS_H_
952c13d20Sdrahn #define	_POWERPC_CDEFS_H_
1047bc79e1Srahnds 
11*06eb0ea5Smartynas #define __strong_alias(alias,sym)			\
12*06eb0ea5Smartynas 	__asm__(".global " __STRING(alias) " ; "	\
13*06eb0ea5Smartynas 	    __STRING(alias) " = " __STRING(sym))
1438f66c44Sdrahn #define __weak_alias(alias,sym)				\
15ea085145Sderaadt 	__asm__(".weak " __STRING(alias) " ; "		\
16ea085145Sderaadt 	    __STRING(alias) " = " __STRING(sym))
1747bc79e1Srahnds #define	__warn_references(sym,msg)			\
18ea085145Sderaadt 	__asm__(".section .gnu.warning." __STRING(sym)	\
19ea085145Sderaadt 	    " ; .ascii \"" msg "\" ; .text")
2047bc79e1Srahnds 
2152c13d20Sdrahn #endif /* !_POWERPC_CDEFS_H_ */
22