cdefs.h 606 B

12345678910111213141516171819202122
  1. /* $OpenBSD: cdefs.h,v 1.11 2013/03/28 17:30:45 martynas Exp $ */
  2. /*
  3. * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
  4. * Public domain.
  5. */
  6. #ifndef _MACHINE_CDEFS_H_
  7. #define _MACHINE_CDEFS_H_
  8. #define __strong_alias(alias,sym) \
  9. __asm__(".global " __STRING(alias) " ; " \
  10. __STRING(alias) " = " __STRING(sym))
  11. #define __weak_alias(alias,sym) \
  12. __asm__(".weak " __STRING(alias) " ; " \
  13. __STRING(alias) " = " __STRING(sym))
  14. #define __warn_references(sym,msg) \
  15. __asm__(".section .gnu.warning." __STRING(sym) \
  16. " ; .ascii \"" msg "\" ; .text")
  17. #endif /* !_MACHINE_CDEFS_H_ */