kernel: split patches folder up into backport, pending and hack folders
[openwrt/staging/chunkeey.git] / target / linux / generic / hack-4.9 / 202-reduce_module_size.patch
1 From fd66884da2f96d2a7ea73f58b1b86251b959a913 Mon Sep 17 00:00:00 2001
2 From: Felix Fietkau <nbd@nbd.name>
3 Date: Fri, 7 Jul 2017 16:56:19 +0200
4 Subject: kernel: strip unnecessary symbol table information from kernel modules
5
6 reduces default squashfs size on ar71xx by about 4k
7
8 lede-commit: 058d331a39077f159ca8922f1f422a1346d6aa67
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 ---
11 Makefile | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/Makefile b/Makefile
15 index a40b373eba3a..984eb5907d00 100644
16 --- a/Makefile
17 +++ b/Makefile
18 @@ -407,7 +407,7 @@ KBUILD_CFLAGS_KERNEL :=
19 KBUILD_AFLAGS := -D__ASSEMBLY__ $(call cc-option,-fno-PIE)
20 KBUILD_AFLAGS_MODULE := -DMODULE
21 KBUILD_CFLAGS_MODULE := -DMODULE
22 -KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
23 +KBUILD_LDFLAGS_MODULE = -T $(srctree)/scripts/module-common.lds $(if $(CONFIG_PROFILING),,-s)
24
25 # Read KERNELRELEASE from include/config/kernel.release (if it exists)
26 KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
27 --
28 2.11.0
29