https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7fb6030e0568e952f32a7…
commit 7fb6030e0568e952f32a724e490a0dbad4b0e8f6
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Tue Mar 2 12:58:21 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Tue Mar 2 14:36:38 2021 +0100
[SDK] Properly put assembly debug info into .debug_frame section
For some reason, the default is to put it into .eh_frame where objcopy & al
happily ignore them
---
sdk/include/asm/asm.inc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sdk/include/asm/asm.inc b/sdk/include/asm/asm.inc
index b3b265ef4f3..d13b06e8ead 100644
--- a/sdk/include/asm/asm.inc
+++ b/sdk/include/asm/asm.inc
@@ -235,6 +235,9 @@ ENDM
/* Force intel syntax */
.intel_syntax noprefix
+/* Put dwarf debug info in the .dwarf_debug section, which will be properly stripped */
+.cfi_sections .debug_frame
+
.altmacro
/* Explicit radix in GAS syntax */