Changeset 42009


Ignore:
Timestamp:
2014-08-06T12:30:17+02:00 (3 years ago)
Author:
nbd
Message:

kernel: when using --gc-sections, add --sort-section=name to get a more stable sorting order

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

Backport of r41951

Location:
branches/barrier_breaker/target/linux/generic/patches-3.10
Files:
3 edited

Legend:

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

    r37854 r42009  
    11From: Felix Fietkau <nbd@openwrt.org> 
    22 
    3 use -ffunction-sections, -fdata-sections and --gc-sections 
     3use -ffunction-sections, -fdata-sections and --gc-sections --sort-section=name 
    44 
    55In combination with kernel symbol export stripping this significantly reduces 
     
    1818 cflags-y                       += -msoft-float 
    1919-LDFLAGS_vmlinux                        += -G 0 -static -n -nostdlib 
    20 +LDFLAGS_vmlinux                        += -G 0 -static -n -nostdlib --gc-sections 
     20+LDFLAGS_vmlinux                        += -G 0 -static -n -nostdlib --gc-sections --sort-section=name 
    2121 KBUILD_AFLAGS_MODULE           += -mlong-calls 
    2222 KBUILD_CFLAGS_MODULE           += -mlong-calls 
     
    424424 LDFLAGS_vmlinux        += --be8 
    425425 endif 
    426 +LDFLAGS_vmlinux += --gc-sections 
     426+LDFLAGS_vmlinux += --gc-sections --sort-section=name 
    427427  
    428428 OBJCOPYFLAGS   :=-O binary -R .comment -S 
  • branches/barrier_breaker/target/linux/generic/patches-3.10/302-mips_no_branch_likely.patch

    r36663 r42009  
    88+cflags-y                       += -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely 
    99 cflags-y                       += -msoft-float 
    10  LDFLAGS_vmlinux                        += -G 0 -static -n -nostdlib --gc-sections 
     10 LDFLAGS_vmlinux                        += -G 0 -static -n -nostdlib --gc-sections --sort-section=name 
    1111 KBUILD_AFLAGS_MODULE           += -mlong-calls 
  • branches/barrier_breaker/target/linux/generic/patches-3.10/305-mips_module_reloc.patch

    r37832 r42009  
    44 cflags-y                       += -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely 
    55 cflags-y                       += -msoft-float 
    6  LDFLAGS_vmlinux                        += -G 0 -static -n -nostdlib --gc-sections 
     6 LDFLAGS_vmlinux                        += -G 0 -static -n -nostdlib --gc-sections --sort-section=name 
    77+ifdef CONFIG_64BIT 
    88 KBUILD_AFLAGS_MODULE           += -mlong-calls 
Note: See TracChangeset for help on using the changeset viewer.