aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-09-28 14:51:58 -0400
committerSam Ravnborg <sam@neptun.(none)>2007-10-12 15:20:32 -0400
commitcf851aa75694bdcc27a5092b2e45de6dcdc1cfa8 (patch)
tree162fa20de414a9ff170ef228044666941b316f45 /Makefile
parent14f31562dbda93500fdf74b8158248fde2d556bb (diff)
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: Roland McGrath <roland@redhat.com> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1b0d84d49612..0ad6e8d9b0b3 100644
--- a/Makefile
+++ b/Makefile
@@ -502,6 +502,7 @@ endif
502 502
503ifdef CONFIG_DEBUG_INFO 503ifdef CONFIG_DEBUG_INFO
504CFLAGS += -g 504CFLAGS += -g
505AFLAGS += -gdwarf-2
505endif 506endif
506 507
507# Force gcc to behave correct even for buggy distributions 508# Force gcc to behave correct even for buggy distributions