ramips: add support for TOTOLINK LR1200
[openwrt/openwrt.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 --- a/Makefile
15 +++ b/Makefile
16 @@ -398,7 +398,7 @@ KBUILD_AFLAGS_KERNEL :=
17 KBUILD_CFLAGS_KERNEL :=
18 KBUILD_AFLAGS_MODULE := -DMODULE
19 KBUILD_CFLAGS_MODULE := -DMODULE
20 -KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
21 +KBUILD_LDFLAGS_MODULE = -T $(srctree)/scripts/module-common.lds $(if $(CONFIG_PROFILING),,-s)
22 GCC_PLUGINS_CFLAGS :=
23
24 # Read KERNELRELEASE from include/config/kernel.release (if it exists)