Changeset 37854


Ignore:
Timestamp:
2013-08-28T09:38:36+02:00 (4 years ago)
Author:
nbd
Message:

kernel: fix booting issues on imx23 and imx6 targets

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/patches-3.10/220-gc_sections.patch

    r37832 r37854  
     1From: Felix Fietkau <nbd@openwrt.org> 
     2 
     3use -ffunction-sections, -fdata-sections and --gc-sections 
     4 
     5In combination with kernel symbol export stripping this significantly reduces 
     6the kernel image size. Used on both ARM and MIPS architectures. 
     7 
     8Signed-off-by: Felix Fietkau <nbd@openwrt.org> 
     9Signed-off-by: Jonas Gorski <jogo@openwrt.org> 
     10Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
     11--- 
     12 
    113--- a/arch/mips/Makefile 
    214+++ b/arch/mips/Makefile 
     
    476488        } 
    477489 #endif 
     490@@ -158,14 +158,14 @@ SECTIONS 
     491         */ 
     492        __vectors_start = .; 
     493        .vectors 0 : AT(__vectors_start) { 
     494-               *(.vectors) 
     495+               KEEP(*(.vectors)) 
     496        } 
     497        . = __vectors_start + SIZEOF(.vectors); 
     498        __vectors_end = .; 
     499  
     500        __stubs_start = .; 
     501        .stubs 0x1000 : AT(__stubs_start) { 
     502-               *(.stubs) 
     503+               KEEP(*(.stubs)) 
     504        } 
     505        . = __stubs_start + SIZEOF(.stubs); 
     506        __stubs_end = .; 
    478507@@ -179,24 +179,24 @@ SECTIONS 
    479508        } 
Note: See TracChangeset for help on using the changeset viewer.