Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_X86_DWARF2_H
0003 #define _ASM_X86_DWARF2_H
0004 
0005 #ifndef __ASSEMBLY__
0006 #warning "asm/dwarf2.h should be only included in pure assembly files"
0007 #endif
0008 
0009 #define CFI_STARTPROC       .cfi_startproc
0010 #define CFI_ENDPROC     .cfi_endproc
0011 #define CFI_DEF_CFA     .cfi_def_cfa
0012 #define CFI_DEF_CFA_REGISTER    .cfi_def_cfa_register
0013 #define CFI_DEF_CFA_OFFSET  .cfi_def_cfa_offset
0014 #define CFI_ADJUST_CFA_OFFSET   .cfi_adjust_cfa_offset
0015 #define CFI_OFFSET      .cfi_offset
0016 #define CFI_REL_OFFSET      .cfi_rel_offset
0017 #define CFI_REGISTER        .cfi_register
0018 #define CFI_RESTORE     .cfi_restore
0019 #define CFI_REMEMBER_STATE  .cfi_remember_state
0020 #define CFI_RESTORE_STATE   .cfi_restore_state
0021 #define CFI_UNDEFINED       .cfi_undefined
0022 #define CFI_ESCAPE      .cfi_escape
0023 
0024 #ifndef BUILD_VDSO
0025     /*
0026      * Emit CFI data in .debug_frame sections, not .eh_frame sections.
0027      * The latter we currently just discard since we don't do DWARF
0028      * unwinding at runtime.  So only the offline DWARF information is
0029      * useful to anyone.  Note we should not use this directive if we
0030      * ever decide to enable DWARF unwinding at runtime.
0031      */
0032     .cfi_sections .debug_frame
0033 #else
0034      /*
0035       * For the vDSO, emit both runtime unwind information and debug
0036       * symbols for the .dbg file.
0037       */
0038     .cfi_sections .eh_frame, .debug_frame
0039 #endif
0040 
0041 #endif /* _ASM_X86_DWARF2_H */