dwarf.h 912 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_S390_DWARF_H
  3. #define _ASM_S390_DWARF_H
  4. #ifdef __ASSEMBLY__
  5. #define CFI_STARTPROC .cfi_startproc
  6. #define CFI_ENDPROC .cfi_endproc
  7. #define CFI_DEF_CFA_OFFSET .cfi_def_cfa_offset
  8. #define CFI_ADJUST_CFA_OFFSET .cfi_adjust_cfa_offset
  9. #define CFI_RESTORE .cfi_restore
  10. #ifdef CONFIG_AS_CFI_VAL_OFFSET
  11. #define CFI_VAL_OFFSET .cfi_val_offset
  12. #else
  13. #define CFI_VAL_OFFSET #
  14. #endif
  15. #ifndef BUILD_VDSO
  16. /*
  17. * Emit CFI data in .debug_frame sections and not in .eh_frame
  18. * sections. The .eh_frame CFI is used for runtime unwind
  19. * information that is not being used. Hence, vmlinux.lds.S
  20. * can discard the .eh_frame sections.
  21. */
  22. .cfi_sections .debug_frame
  23. #else
  24. /*
  25. * For vDSO, emit CFI data in both, .eh_frame and .debug_frame
  26. * sections.
  27. */
  28. .cfi_sections .eh_frame, .debug_frame
  29. #endif
  30. #endif /* __ASSEMBLY__ */
  31. #endif /* _ASM_S390_DWARF_H */