Commit cf851aa7 authored by Roland McGrath's avatar Roland McGrath Committed by Sam Ravnborg

kbuild: pass -g to assembler under CONFIG_DEBUG_INFO

The assembler for a while now supports -gdwarf to generate source line info
just like the C compiler does.  Source-level assembly debugging sounds like an
oxymoron, but it is handy to be able to see the right source file and read its
comments rather than just the disassembly.  This patch enables -gdwarf for
assembly files when CONFIG_DEBUG_INFO=y and the assembler supports the option.
Signed-off-by: default avatarRoland McGrath <>
Cc: Sam Ravnborg <>
Cc: <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarSam Ravnborg <>
parent 14f31562
......@@ -502,6 +502,7 @@ endif
CFLAGS += -g
AFLAGS += -gdwarf-2
# Force gcc to behave correct even for buggy distributions
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment