1 /* $OpenBSD: cdefs.h,v 1.3 2011/03/23 16:54:34 pirofti Exp $ */ 2 3 #ifndef _ARM_CDEFS_H_ 4 #define _ARM_CDEFS_H_ 5 6 #if defined(lint) 7 #define __indr_reference(sym,alias) __lint_equal__(sym,alias) 8 #define __warn_references(sym,msg) 9 #define __weak_alias(alias,sym) __lint_equal__(sym,alias) 10 #elif defined(__GNUC__) && defined(__STDC__) 11 #define __weak_alias(alias,sym) \ 12 __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ 13 " = " __STRING(sym)) 14 #define __warn_references(sym,msg) \ 15 __asm__(".section .gnu.warning." __STRING(sym) \ 16 " ; .ascii \"" msg "\" ; .text") 17 #endif 18 19 #endif /* !_ARM_CDEFS_H_ */ 20