[SDK] Properly put assembly debug info into .debug_frame section
authorJérôme Gardou <jerome.gardou@reactos.org>
Tue, 2 Mar 2021 11:58:21 +0000 (12:58 +0100)
committerJérôme Gardou <jerome.gardou@reactos.org>
Tue, 2 Mar 2021 13:36:38 +0000 (14:36 +0100)
For some reason, the default is to put it into .eh_frame where objcopy & al happily ignore them

sdk/include/asm/asm.inc

index b3b265e..d13b06e 100644 (file)
@@ -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 */