Changeset 24a6943 in rtems


Ignore:
Timestamp:
Oct 24, 2013, 11:37:17 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
73e7345
Parents:
0255beaf
git-author:
Joel Sherrill <joel.sherrill@…> (10/24/13 23:37:17)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/24/13 23:42:39)
Message:

sparc all BSPs: Use function and data sections

This reduces the size of the RTEMS tests on average about 45%.

Location:
c/src/lib/libbsp/sparc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/make/custom/erc32.cfg

    r0255beaf r24a6943  
    1414# optimize flag: typically -O2
    1515CFLAGS_OPTIMIZE_V = -O2 -g
     16CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     17
     18LDFLAGS = -Wl,--gc-sections
  • c/src/lib/libbsp/sparc/leon2/make/custom/leon2.cfg

    r0255beaf r24a6943  
    1414# optimize flag: typically -O2
    1515CFLAGS_OPTIMIZE_V = -O2 -g
     16CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     17
     18LDFLAGS = -Wl,--gc-sections
  • c/src/lib/libbsp/sparc/leon3/make/custom/leon3.cfg

    r0255beaf r24a6943  
    1414# optimize flag: typically -O2
    1515CFLAGS_OPTIMIZE_V = -O2 -g
     16CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     17
     18LDFLAGS = -Wl,--gc-sections
  • c/src/lib/libbsp/sparc/shared/startup/linkcmds.base

    r0255beaf r24a6943  
    44OUTPUT_ARCH(sparc)
    55__DYNAMIC  =  0;
     6ENTRY(start)
    67
    78/*
     
    102103    etext = ALIGN(0x10);
    103104    _etext = .;
    104     *(.init)
    105     *(.fini)
     105    KEEP(*(.init))
     106    KEEP(*(.fini))
    106107    *(.lit)
    107108    *(.shdata)
     
    111112    /* for pre rtems-libbsd FreeBSD code */
    112113    __start_set_sysctl_set = .;
    113     *(set_sysctl_*);
     114    KEEP(*(set_sysctl_*));
    114115    __stop_set_sysctl_set = .;
    115     *(set_domain_*);
    116     *(set_pseudo_*);
     116    KEEP(*(set_domain_*));
     117    KEEP(*(set_pseudo_*));
    117118
    118119    /* for rtems-libbsd FreeBSD code */
    119120    _bsd__start_set_modmetadata_set = .;
    120     *(_bsd_set_modmetadata_set);
     121    KEEP(*(_bsd_set_modmetadata_set));
    121122    _bsd__stop_set_modmetadata_set = .;
    122123
    123124    _bsd__start_set_sysctl_set = .;
    124     *(_bsd_set_sysctl_set);
     125    KEEP(*(_bsd_set_sysctl_set));
    125126    _bsd__stop_set_sysctl_set = .;
    126127
    127128    _bsd__start_set_sysinit_set = .;
    128     *(_bsd_set_sysinit_*);
     129    KEEP(*(_bsd_set_sysinit_*));
    129130    _bsd__stop_set_sysinit_set = .;
    130131
Note: See TracChangeset for help on using the changeset viewer.