hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/include/asm/dwarf2.h
....@@ -6,15 +6,6 @@
66 #warning "asm/dwarf2.h should be only included in pure assembly files"
77 #endif
88
9
-/*
10
- * Macros for dwarf2 CFI unwind table entries.
11
- * See "as.info" for details on these pseudo ops. Unfortunately
12
- * they are only supported in very new binutils, so define them
13
- * away for older version.
14
- */
15
-
16
-#ifdef CONFIG_AS_CFI
17
-
189 #define CFI_STARTPROC .cfi_startproc
1910 #define CFI_ENDPROC .cfi_endproc
2011 #define CFI_DEF_CFA .cfi_def_cfa
....@@ -30,20 +21,13 @@
3021 #define CFI_UNDEFINED .cfi_undefined
3122 #define CFI_ESCAPE .cfi_escape
3223
33
-#ifdef CONFIG_AS_CFI_SIGNAL_FRAME
34
-#define CFI_SIGNAL_FRAME .cfi_signal_frame
35
-#else
36
-#define CFI_SIGNAL_FRAME
37
-#endif
38
-
39
-#if defined(CONFIG_AS_CFI_SECTIONS) && defined(__ASSEMBLY__)
4024 #ifndef BUILD_VDSO
4125 /*
4226 * Emit CFI data in .debug_frame sections, not .eh_frame sections.
4327 * The latter we currently just discard since we don't do DWARF
4428 * unwinding at runtime. So only the offline DWARF information is
45
- * useful to anyone. Note we should not use this directive if
46
- * vmlinux.lds.S gets changed so it doesn't discard .eh_frame.
29
+ * useful to anyone. Note we should not use this directive if we
30
+ * ever decide to enable DWARF unwinding at runtime.
4731 */
4832 .cfi_sections .debug_frame
4933 #else
....@@ -52,34 +36,6 @@
5236 * symbols for the .dbg file.
5337 */
5438 .cfi_sections .eh_frame, .debug_frame
55
-#endif
56
-#endif
57
-
58
-#else
59
-
60
-/*
61
- * Due to the structure of pre-exisiting code, don't use assembler line
62
- * comment character # to ignore the arguments. Instead, use a dummy macro.
63
- */
64
-.macro cfi_ignore a=0, b=0, c=0, d=0
65
-.endm
66
-
67
-#define CFI_STARTPROC cfi_ignore
68
-#define CFI_ENDPROC cfi_ignore
69
-#define CFI_DEF_CFA cfi_ignore
70
-#define CFI_DEF_CFA_REGISTER cfi_ignore
71
-#define CFI_DEF_CFA_OFFSET cfi_ignore
72
-#define CFI_ADJUST_CFA_OFFSET cfi_ignore
73
-#define CFI_OFFSET cfi_ignore
74
-#define CFI_REL_OFFSET cfi_ignore
75
-#define CFI_REGISTER cfi_ignore
76
-#define CFI_RESTORE cfi_ignore
77
-#define CFI_REMEMBER_STATE cfi_ignore
78
-#define CFI_RESTORE_STATE cfi_ignore
79
-#define CFI_UNDEFINED cfi_ignore
80
-#define CFI_ESCAPE cfi_ignore
81
-#define CFI_SIGNAL_FRAME cfi_ignore
82
-
8339 #endif
8440
8541 #endif /* _ASM_X86_DWARF2_H */