aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-4.9/220-gc_sections.patch
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2019-08-07 12:51:24 +0200
committerKoen Vandeputte <koen.vandeputte@ncentric.com>2019-08-09 18:30:26 +0200
commit6e4d590990a781e1ef4712b409363161a4fa2a8c (patch)
tree21cc9f1ef16a68d49039f93443c7fbd7db5db535 /target/linux/generic/hack-4.9/220-gc_sections.patch
parentcad1b474d961817dcd33c5cd2bdfc85ff4564798 (diff)
downloadupstream-6e4d590990a781e1ef4712b409363161a4fa2a8c.tar.gz
upstream-6e4d590990a781e1ef4712b409363161a4fa2a8c.tar.bz2
upstream-6e4d590990a781e1ef4712b409363161a4fa2a8c.zip
kernel: bump 4.9 to 4.9.188
Refreshed all patches. Compile-tested on: none Runtime-tested on: none Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/generic/hack-4.9/220-gc_sections.patch')
-rw-r--r--target/linux/generic/hack-4.9/220-gc_sections.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/hack-4.9/220-gc_sections.patch b/target/linux/generic/hack-4.9/220-gc_sections.patch
index a4c937388f..bdacb0f3ed 100644
--- a/target/linux/generic/hack-4.9/220-gc_sections.patch
+++ b/target/linux/generic/hack-4.9/220-gc_sections.patch
@@ -21,9 +21,9 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
--- a/Makefile
+++ b/Makefile
-@@ -401,6 +401,11 @@ KBUILD_CFLAGS_MODULE := -DMODULE
- KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
+@@ -402,6 +402,11 @@ KBUILD_LDFLAGS_MODULE := -T $(srctree)/s
GCC_PLUGINS_CFLAGS :=
+ CLANG_FLAGS :=
+ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
+KBUILD_CFLAGS_KERNEL += $(call cc-option,-ffunction-sections,)
@@ -33,7 +33,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
-@@ -651,11 +656,6 @@ KBUILD_CFLAGS += $(call cc-disable-warni
+@@ -652,11 +657,6 @@ KBUILD_CFLAGS += $(call cc-disable-warni
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias)