Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_S390_DWARF_H
0003 #define _ASM_S390_DWARF_H
0004 
0005 #ifdef __ASSEMBLY__
0006 
0007 #define CFI_STARTPROC       .cfi_startproc
0008 #define CFI_ENDPROC     .cfi_endproc
0009 #define CFI_DEF_CFA_OFFSET  .cfi_def_cfa_offset
0010 #define CFI_ADJUST_CFA_OFFSET   .cfi_adjust_cfa_offset
0011 #define CFI_RESTORE     .cfi_restore
0012 
0013 #ifdef CONFIG_AS_CFI_VAL_OFFSET
0014 #define CFI_VAL_OFFSET      .cfi_val_offset
0015 #else
0016 #define CFI_VAL_OFFSET      #
0017 #endif
0018 
0019 #ifndef BUILD_VDSO
0020     /*
0021      * Emit CFI data in .debug_frame sections and not in .eh_frame
0022      * sections.  The .eh_frame CFI is used for runtime unwind
0023      * information that is not being used.  Hence, vmlinux.lds.S
0024      * can discard the .eh_frame sections.
0025      */
0026     .cfi_sections .debug_frame
0027 #else
0028     /*
0029      * For vDSO, emit CFI data in both, .eh_frame and .debug_frame
0030      * sections.
0031      */
0032     .cfi_sections .eh_frame, .debug_frame
0033 #endif
0034 
0035 #endif  /* __ASSEMBLY__ */
0036 
0037 #endif  /* _ASM_S390_DWARF_H */