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