Commit 6e0c47ed authored by Jan Beulich's avatar Jan Beulich Committed by Linus Torvalds

[PATCH] x86_64: Separate CONFIG_UNWIND_INFO from CONFIG_DEBUG_INFO

As a follow-up to the introduction of CONFIG_UNWIND_INFO, this
separates the generation of frame unwind information for x86-64 from
that of full debug information.
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 130951cc
...@@ -38,8 +38,10 @@ CFLAGS += -pipe ...@@ -38,8 +38,10 @@ CFLAGS += -pipe
# actually it makes the kernel smaller too. # actually it makes the kernel smaller too.
CFLAGS += -fno-reorder-blocks CFLAGS += -fno-reorder-blocks
CFLAGS += -Wno-sign-compare CFLAGS += -Wno-sign-compare
ifneq ($(CONFIG_DEBUG_INFO),y) ifneq ($(CONFIG_UNWIND_INFO),y)
CFLAGS += -fno-asynchronous-unwind-tables CFLAGS += -fno-asynchronous-unwind-tables
endif
ifneq ($(CONFIG_DEBUG_INFO),y)
# -fweb shrinks the kernel a bit, but the difference is very small # -fweb shrinks the kernel a bit, but the difference is very small
# it also messes up debugging, so don't use it for now. # it also messes up debugging, so don't use it for now.
#CFLAGS += $(call cc-option,-fweb) #CFLAGS += $(call cc-option,-fweb)
......
...@@ -189,7 +189,7 @@ SECTIONS ...@@ -189,7 +189,7 @@ SECTIONS
/* Sections to be discarded */ /* Sections to be discarded */
/DISCARD/ : { /DISCARD/ : {
*(.exitcall.exit) *(.exitcall.exit)
#ifndef CONFIG_DEBUG_INFO #ifndef CONFIG_UNWIND_INFO
*(.eh_frame) *(.eh_frame)
#endif #endif
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
away for older version. away for older version.
*/ */
#ifdef CONFIG_DEBUG_INFO #ifdef CONFIG_UNWIND_INFO
#define CFI_STARTPROC .cfi_startproc #define CFI_STARTPROC .cfi_startproc
#define CFI_ENDPROC .cfi_endproc #define CFI_ENDPROC .cfi_endproc
......
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