kernel: update linux 3.8 to 3.8.12
[openwrt.git] / target / linux / generic / patches-3.8 / 220-gc_sections.patch
index 5fb54a2872010db4bf3eeaf33a8291fb9d864510..66312952d6f3a0e4234b4a69f32e34ba5506f142 100644 (file)
        VMLINUX_SYMBOL(__idmap_text_end) = .;
  
  #ifdef CONFIG_HOTPLUG_CPU
+@@ -93,7 +93,7 @@ SECTIONS
+       .text : {                       /* Real text segment            */
+               _stext = .;             /* Text and read-only data      */
+                       __exception_text_start = .;
+-                      *(.exception.text)
++                      KEEP(*(.exception.text))
+                       __exception_text_end = .;
+                       IRQENTRY_TEXT
+                       TEXT_TEXT
 @@ -118,7 +118,7 @@ SECTIONS
        __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
                __start___ex_table = .;
                __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