X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Fpatches-3.18%2F220-gc_sections.patch;h=105d1e7691058018a6d2d29838cf29526ce56dcb;hb=c0fd27ae720f08b264115b8cfbce414662a96c89;hp=86727f1661ea412ed926fa1bb8d9dbf14be197ae;hpb=b59385e75e3136af064941364b341b8658397960;p=15.05%2Fopenwrt.git diff --git a/target/linux/generic/patches-3.18/220-gc_sections.patch b/target/linux/generic/patches-3.18/220-gc_sections.patch index 86727f1661..105d1e7691 100644 --- a/target/linux/generic/patches-3.18/220-gc_sections.patch +++ b/target/linux/generic/patches-3.18/220-gc_sections.patch @@ -25,9 +25,9 @@ Signed-off-by: Gabor Juhos +KBUILD_CFLAGS_KERNEL += -ffunction-sections -fdata-sections +endif + - cflags-y += -ffreestanding - # + # pass -msoft-float to GAS if it supports it. However on newer binutils + # (specifically newer than 2.24.51.20140728) we then also need to explicitly --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -67,7 +67,7 @@ SECTIONS