dwarf2.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_X86_DWARF2_H
  3. #define _ASM_X86_DWARF2_H
  4. #ifndef __ASSEMBLY__
  5. #warning "asm/dwarf2.h should be only included in pure assembly files"
  6. #endif
  7. #define CFI_STARTPROC .cfi_startproc
  8. #define CFI_ENDPROC .cfi_endproc
  9. #define CFI_DEF_CFA .cfi_def_cfa
  10. #define CFI_DEF_CFA_REGISTER .cfi_def_cfa_register
  11. #define CFI_DEF_CFA_OFFSET .cfi_def_cfa_offset
  12. #define CFI_ADJUST_CFA_OFFSET .cfi_adjust_cfa_offset
  13. #define CFI_OFFSET .cfi_offset
  14. #define CFI_REL_OFFSET .cfi_rel_offset
  15. #define CFI_REGISTER .cfi_register
  16. #define CFI_RESTORE .cfi_restore
  17. #define CFI_REMEMBER_STATE .cfi_remember_state
  18. #define CFI_RESTORE_STATE .cfi_restore_state
  19. #define CFI_UNDEFINED .cfi_undefined
  20. #define CFI_ESCAPE .cfi_escape
  21. #ifndef BUILD_VDSO
  22. /*
  23. * Emit CFI data in .debug_frame sections, not .eh_frame sections.
  24. * The latter we currently just discard since we don't do DWARF
  25. * unwinding at runtime. So only the offline DWARF information is
  26. * useful to anyone. Note we should not use this directive if we
  27. * ever decide to enable DWARF unwinding at runtime.
  28. */
  29. .cfi_sections .debug_frame
  30. #else
  31. /*
  32. * For the vDSO, emit both runtime unwind information and debug
  33. * symbols for the .dbg file.
  34. */
  35. .cfi_sections .eh_frame, .debug_frame
  36. #endif
  37. #endif /* _ASM_X86_DWARF2_H */