1 /* $OpenBSD: cdefs.h,v 1.2 2013/03/28 17:30:45 martynas Exp $ */ 2 3 #ifndef _SH_CDEFS_H_ 4 #define _SH_CDEFS_H_ 5 6 #define __strong_alias(alias,sym) \ 7 __asm__(".global " __STRING(alias) " ; " __STRING(alias) \ 8 " = " __STRING(sym)) 9 #define __weak_alias(alias,sym) \ 10 __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ 11 " = " __STRING(sym)) 12 #define __warn_references(sym,msg) \ 13 __asm__(".section .gnu.warning." __STRING(sym) \ 14 " ; .ascii \"" msg "\" ; .text") 15 16 #endif /* !_SH_CDEFS_H_ */ 17