summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-31 09:10:24 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-31 10:10:36 +0200
commitccda945996c25dbc1594497b6cf4134d3b2bdc75 (patch)
tree4a58ccd3f90aa616e131ed56dc74c98e47a44a8a
parent024bffc665768504f594f23c9a9a6fdcca2bab38 (diff)
bsps: Sort some sections first by alignment
This helps to avoid alignment padding and thus may reduce some memory waste.
-rw-r--r--c/src/lib/libbsp/arm/shared/startup/linkcmds.base6
-rw-r--r--c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base8
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;