diff options
-rw-r--r-- | arch/x86_64/Makefile | 4 | ||||
-rw-r--r-- | arch/x86_64/kernel/vmlinux.lds.S | 2 | ||||
-rw-r--r-- | include/asm-x86_64/dwarf2.h | 2 |
3 files changed, 5 insertions, 3 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. |
39 | CFLAGS += -fno-reorder-blocks | 39 | CFLAGS += -fno-reorder-blocks |
40 | CFLAGS += -Wno-sign-compare | 40 | CFLAGS += -Wno-sign-compare |
41 | ifneq ($(CONFIG_DEBUG_INFO),y) | 41 | ifneq ($(CONFIG_UNWIND_INFO),y) |
42 | CFLAGS += -fno-asynchronous-unwind-tables | 42 | CFLAGS += -fno-asynchronous-unwind-tables |
43 | endif | ||
44 | ifneq ($(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 | } |
diff --git a/include/asm-x86_64/dwarf2.h b/include/asm-x86_64/dwarf2.h index fe062cba0a89..07654bd155bf 100644 --- a/include/asm-x86_64/dwarf2.h +++ b/include/asm-x86_64/dwarf2.h | |||
@@ -14,7 +14,7 @@ | |||
14 | away for older version. | 14 | away for older version. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifdef CONFIG_DEBUG_INFO | 17 | #ifdef CONFIG_UNWIND_INFO |
18 | 18 | ||
19 | #define CFI_STARTPROC .cfi_startproc | 19 | #define CFI_STARTPROC .cfi_startproc |
20 | #define CFI_ENDPROC .cfi_endproc | 20 | #define CFI_ENDPROC .cfi_endproc |