From: Adrian Bunk It's -gdwarf-2, not -gdwarf2. With this fix it can actually work. And since even gcc 3.2 supports -gdwarf-2 there's no reason for checking with as-option. Signed-off-by: Adrian Bunk Cc: Roland McGrath Cc: Jason Wessel Signed-off-by: Andrew Morton --- Makefile | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN Makefile~pass-g-to-assembler-under-config_debug_info-fix Makefile --- a/Makefile~pass-g-to-assembler-under-config_debug_info-fix +++ a/Makefile @@ -499,7 +499,7 @@ endif ifdef CONFIG_DEBUG_INFO CFLAGS += -g -AFLAGS += $(call as-option, -gdwarf2) +AFLAGS += -gdwarf-2 endif # Force gcc to behave correct even for buggy distributions _