Annotation of /trunk/kernel26-alx/patches-2.6.26-r1/0303-2.6.26-strip-debug.patch
Parent Directory | Revision Log
Revision 681 -
(hide annotations)
(download)
Wed Sep 17 19:42:13 2008 UTC (16 years ago) by niro
File size: 1372 byte(s)
Wed Sep 17 19:42:13 2008 UTC (16 years ago) by niro
File size: 1372 byte(s)
-2.6.26-alx-r1
1 | niro | 681 | From: Ryan Hope <rmh3093@gmail.com> |
2 | Date: Wed, 14 May 2008 17:34:34 +0000 (-0400) | ||
3 | Subject: add strip-debug | ||
4 | X-Git-Tag: v2.6.26-rc6-zen1~15^2 | ||
5 | X-Git-Url: http://zen-sources.org/cgi-bin/gitweb.cgi?p=kernel.git;a=commitdiff_plain;h=0c7adcf457e112cdefb47f55d9bffb18909646ca | ||
6 | |||
7 | add strip-debug | ||
8 | --- | ||
9 | |||
10 | diff --git a/Makefile b/Makefile | ||
11 | index 6923d66..405d9c8 100644 | ||
12 | --- a/Makefile | ||
13 | +++ b/Makefile | ||
14 | @@ -515,6 +515,13 @@ endif | ||
15 | # Arch Makefiles may override this setting | ||
16 | KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) | ||
17 | |||
18 | +#Strips debugging symbols if enabled | ||
19 | +#Use only if you want a super small kernel | ||
20 | +#Without the ability to debug | ||
21 | +ifdef CONFIG_CC_STRIP_DEBUG | ||
22 | +KBUILD_CFLAGS += -s | ||
23 | +endif | ||
24 | + | ||
25 | include $(srctree)/arch/$(SRCARCH)/Makefile | ||
26 | |||
27 | ifdef CONFIG_FRAME_POINTER | ||
28 | diff --git a/init/Kconfig b/init/Kconfig | ||
29 | index 6199d11..68b042b 100644 | ||
30 | --- a/init/Kconfig | ||
31 | +++ b/init/Kconfig | ||
32 | @@ -524,6 +524,19 @@ config CC_OPTIMIZE_FOR_SIZE | ||
33 | |||
34 | If unsure, say N. | ||
35 | |||
36 | +config CC_STRIP_DEBUG | ||
37 | + bool "Strip Debugging Symbols" | ||
38 | + default n | ||
39 | + depends on EXPERIMENTAL | ||
40 | + help | ||
41 | + Enabling this option will pass "-s" to gcc, which strips debug | ||
42 | + symbols, resulting in a MUCH smaller kernel. | ||
43 | + | ||
44 | + WARNING: Use this only if you don't plan on using a debugger, | ||
45 | + or debug information. | ||
46 | + | ||
47 | + If unsure, say N. | ||
48 | + | ||
49 | config SYSCTL | ||
50 | bool | ||
51 |