aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2006-01-11 16:42:05 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-11 22:01:10 -0500
commit6e0c47ede7b1473a4e2ab65a0fecf0385ab23c03 (patch)
treeb190f8d76776faf5a2fba9fbfa866c71ec793265 /arch/x86_64
parent130951ccb14167c20b87e8bed52b60864ed53c2b (diff)
[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: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/Makefile4
-rw-r--r--arch/x86_64/kernel/vmlinux.lds.S2
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86_64/Makefile b/arch/x86_64/Makefile
index 51d83288d62b..2d3e9be229c0 100644
--- a/arch/x86_64/Makefile
+++ b/arch/x86_64/Makefile
@@ -38,8 +38,10 @@ CFLAGS += -pipe
38# actually it makes the kernel smaller too. 38# actually it makes the kernel smaller too.
39CFLAGS += -fno-reorder-blocks 39CFLAGS += -fno-reorder-blocks
40CFLAGS += -Wno-sign-compare 40CFLAGS += -Wno-sign-compare
41ifneq ($(CONFIG_DEBUG_INFO),y) 41ifneq ($(CONFIG_UNWIND_INFO),y)
42CFLAGS += -fno-asynchronous-unwind-tables 42CFLAGS += -fno-asynchronous-unwind-tables
43endif
44ifneq ($(CONFIG_DEBUG_INFO),y)
43# -fweb shrinks the kernel a bit, but the difference is very small 45# -fweb shrinks the kernel a bit, but the difference is very small
44# it also messes up debugging, so don't use it for now. 46# it also messes up debugging, so don't use it for now.
45#CFLAGS += $(call cc-option,-fweb) 47#CFLAGS += $(call cc-option,-fweb)
diff --git a/arch/x86_64/kernel/vmlinux.lds.S b/arch/x86_64/kernel/vmlinux.lds.S
index 58b19215b4b3..4cbbe7c48839 100644
--- a/arch/x86_64/kernel/vmlinux.lds.S
+++ b/arch/x86_64/kernel/vmlinux.lds.S
@@ -189,7 +189,7 @@ SECTIONS
189 /* Sections to be discarded */ 189 /* Sections to be discarded */
190 /DISCARD/ : { 190 /DISCARD/ : {
191 *(.exitcall.exit) 191 *(.exitcall.exit)
192#ifndef CONFIG_DEBUG_INFO 192#ifndef CONFIG_UNWIND_INFO
193 *(.eh_frame) 193 *(.eh_frame)
194#endif 194#endif
195 } 195 }