diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-10 17:04:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-10 17:04:36 +0000 |
commit | 53e0f10246bbfdbfed941a8d44181f202a1f961f (patch) | |
tree | 14af99aae15dd03168da8b6bcd181a61aec44da2 /target/linux/generic | |
parent | 2b83c9bd8a1109c32696cab1fb3b146ded5cad40 (diff) | |
download | upstream-53e0f10246bbfdbfed941a8d44181f202a1f961f.tar.gz upstream-53e0f10246bbfdbfed941a8d44181f202a1f961f.tar.bz2 upstream-53e0f10246bbfdbfed941a8d44181f202a1f961f.zip |
kernel: prevent -f*-sections from leaking into the boot zImage wrapper on arm
SVN-Revision: 35938
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/patches-3.8/220-gc_sections.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.8/220-gc_sections.patch b/target/linux/generic/patches-3.8/220-gc_sections.patch index 89dc863e45..66312952d6 100644 --- a/target/linux/generic/patches-3.8/220-gc_sections.patch +++ b/target/linux/generic/patches-3.8/220-gc_sections.patch @@ -471,3 +471,13 @@ __pv_table_end = .; } .init.data : { +--- a/arch/arm/boot/compressed/Makefile ++++ b/arch/arm/boot/compressed/Makefile +@@ -119,6 +119,7 @@ ifeq ($(CONFIG_FUNCTION_TRACER),y) + ORIG_CFLAGS := $(KBUILD_CFLAGS) + KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) + endif ++KBUILD_CFLAGS_KERNEL := $(patsubst -f%-sections,,$(KBUILD_CFLAGS_KERNEL)) + + ccflags-y := -fpic -fno-builtin -I$(obj) + asflags-y := -Wa,-march=all -DZIMAGE |