From 7fb6030e0568e952f32a724e490a0dbad4b0e8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Tue, 2 Mar 2021 12:58:21 +0100 Subject: [PATCH] [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 */