Changeset ccda9459 in rtems


Ignore:
Timestamp:
May 31, 2016, 7:10:24 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0546e65e
Parents:
024bffc6
git-author:
Sebastian Huber <sebastian.huber@…> (05/31/16 07:10:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/31/16 08:10:36)
Message:

bsps: Sort some sections first by alignment

This helps to avoid alignment padding and thus may reduce some memory
waste.

Location:
c/src/lib/libbsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/startup/linkcmds.base

    r024bffc6 rccda9459  
    88
    99/*
    10  * Copyright (c) 2008-2015 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2008, 2016 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    400400        .nocache : ALIGN_WITH_INPUT {
    401401                bsp_section_nocache_begin = .;
    402                 *(SORT(.bsp_nocache*))
     402                *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_nocache*)))
    403403                bsp_section_nocache_end = .;
    404404        } > REGION_NOCACHE AT > REGION_NOCACHE_LOAD
     
    409409        .nocachenoload (NOLOAD) : ALIGN_WITH_INPUT {
    410410                bsp_section_nocachenoload_begin = .;
    411                 *(SORT(.bsp_noload_nocache*))
     411                *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_noload_nocache*)))
    412412                bsp_section_nocacheheap_begin = .;
    413413                . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.);
  • c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base

    r024bffc6 rccda9459  
    88
    99/*
    10  * Copyright (c) 2011-2015 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2011, 2016 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    336336        .nocache : ALIGN_WITH_INPUT {
    337337                bsp_section_nocache_begin = .;
    338                 *(SORT(.bsp_nocache*))
     338                *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_nocache*)))
    339339                bsp_section_nocache_end = .;
    340340        } > REGION_NOCACHE AT > REGION_NOCACHE_LOAD
     
    345345        .nocachenoload (NOLOAD) : ALIGN_WITH_INPUT {
    346346                bsp_section_nocachenoload_begin = .;
    347                 *(SORT(.bsp_noload_nocache*))
     347                *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_noload_nocache*)))
    348348                bsp_section_nocacheheap_begin = .;
    349349                . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.);
     
    356356        .nvram (NOLOAD) : ALIGN_WITH_INPUT {
    357357                bsp_section_nvram_begin = .;
    358                 *(SORT(.bsp_nvram*))
     358                *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_nvram*)))
    359359                bsp_section_nvram_end = .;
    360360        } > REGION_NVRAM AT > REGION_NVRAM
Note: See TracChangeset for help on using the changeset viewer.