From ccda945996c25dbc1594497b6cf4134d3b2bdc75 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 31 May 2016 09:10:24 +0200 Subject: bsps: Sort some sections first by alignment This helps to avoid alignment padding and thus may reduce some memory waste. --- c/src/lib/libbsp/arm/shared/startup/linkcmds.base | 6 +++--- c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/c/src/lib/libbsp/arm/shared/startup/linkcmds.base b/c/src/lib/libbsp/arm/shared/startup/linkcmds.base index 6c17797e0b..83865fcd90 100644 --- a/c/src/lib/libbsp/arm/shared/startup/linkcmds.base +++ b/c/src/lib/libbsp/arm/shared/startup/linkcmds.base @@ -7,7 +7,7 @@ */ /* - * Copyright (c) 2008-2015 embedded brains GmbH. All rights reserved. + * Copyright (c) 2008, 2016 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -399,7 +399,7 @@ SECTIONS { .nocache : ALIGN_WITH_INPUT { bsp_section_nocache_begin = .; - *(SORT(.bsp_nocache*)) + *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_nocache*))) bsp_section_nocache_end = .; } > REGION_NOCACHE AT > REGION_NOCACHE_LOAD bsp_section_nocache_size = bsp_section_nocache_end - bsp_section_nocache_begin; @@ -408,7 +408,7 @@ SECTIONS { .nocachenoload (NOLOAD) : ALIGN_WITH_INPUT { bsp_section_nocachenoload_begin = .; - *(SORT(.bsp_noload_nocache*)) + *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_noload_nocache*))) bsp_section_nocacheheap_begin = .; . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.); bsp_section_nocacheheap_end = .; diff --git a/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base b/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base index 7070cb09fa..296dd6d2f2 100644 --- a/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base +++ b/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base @@ -7,7 +7,7 @@ */ /* - * Copyright (c) 2011-2015 embedded brains GmbH. All rights reserved. + * Copyright (c) 2011, 2016 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -335,7 +335,7 @@ SECTIONS { .nocache : ALIGN_WITH_INPUT { bsp_section_nocache_begin = .; - *(SORT(.bsp_nocache*)) + *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_nocache*))) bsp_section_nocache_end = .; } > REGION_NOCACHE AT > REGION_NOCACHE_LOAD bsp_section_nocache_size = bsp_section_nocache_end - bsp_section_nocache_begin; @@ -344,7 +344,7 @@ SECTIONS { .nocachenoload (NOLOAD) : ALIGN_WITH_INPUT { bsp_section_nocachenoload_begin = .; - *(SORT(.bsp_noload_nocache*)) + *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_noload_nocache*))) bsp_section_nocacheheap_begin = .; . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.); bsp_section_nocacheheap_end = .; @@ -355,7 +355,7 @@ SECTIONS { .nvram (NOLOAD) : ALIGN_WITH_INPUT { bsp_section_nvram_begin = .; - *(SORT(.bsp_nvram*)) + *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_nvram*))) bsp_section_nvram_end = .; } > REGION_NVRAM AT > REGION_NVRAM bsp_section_nvram_size = bsp_section_nvram_end - bsp_section_nvram_begin; -- cgit v1.2.3