dwarf2.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _DWARF2_H
  2. #define _DWARF2_H 1
  3. #include <linux/config.h>
  4. #ifndef __ASSEMBLY__
  5. #warning "asm/dwarf2.h should be only included in pure assembly files"
  6. #endif
  7. /*
  8. Macros for dwarf2 CFI unwind table entries.
  9. See "as.info" for details on these pseudo ops. Unfortunately
  10. they are only supported in very new binutils, so define them
  11. away for older version.
  12. */
  13. #ifdef CONFIG_DEBUG_INFO
  14. #define CFI_STARTPROC .cfi_startproc
  15. #define CFI_ENDPROC .cfi_endproc
  16. #define CFI_DEF_CFA .cfi_def_cfa
  17. #define CFI_DEF_CFA_REGISTER .cfi_def_cfa_register
  18. #define CFI_DEF_CFA_OFFSET .cfi_def_cfa_offset
  19. #define CFI_ADJUST_CFA_OFFSET .cfi_adjust_cfa_offset
  20. #define CFI_OFFSET .cfi_offset
  21. #define CFI_REL_OFFSET .cfi_rel_offset
  22. #else
  23. /* use assembler line comment character # to ignore the arguments. */
  24. #define CFI_STARTPROC #
  25. #define CFI_ENDPROC #
  26. #define CFI_DEF_CFA #
  27. #define CFI_DEF_CFA_REGISTER #
  28. #define CFI_DEF_CFA_OFFSET #
  29. #define CFI_ADJUST_CFA_OFFSET #
  30. #define CFI_OFFSET #
  31. #define CFI_REL_OFFSET #
  32. #endif
  33. #endif