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
6 reduces default squashfs size on ar71xx by about 4k
8 lede-commit: 058d331a39077f159ca8922f1f422a1346d6aa67
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 1 file changed, 1 insertion(+), 1 deletion(-)
16 @@ -403,7 +403,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)
24 # Read KERNELRELEASE from include/config/kernel.release (if it exists)