[rtems commit] bsps/powerpc: Add more BSP sections and sort them

Sebastian Huber sebh at rtems.org
Fri Jun 22 08:29:08 UTC 2012


Module:    rtems
Branch:    master
Commit:    574ab8acfc097b59913ca54b3d037837f9ba27de
Changeset: http://git.rtems.org/rtems/commit/?id=574ab8acfc097b59913ca54b3d037837f9ba27de

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jun 22 10:31:44 2012 +0200

bsps/powerpc: Add more BSP sections and sort them

---

 .../libbsp/powerpc/shared/startup/linkcmds.base    |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base b/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
index 5c6f5e6..1768361 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
+++ b/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
@@ -85,6 +85,7 @@ SECTIONS {
 
 	.rodata : {
 		bsp_section_rodata_begin = .;
+		*(SORT(.bsp_rodata*))
 		*(.rodata .rodata.* .gnu.linkonce.r.*)
 	} > REGION_RODATA AT > REGION_RODATA_LOAD
 	.rodata1 : {
@@ -250,7 +251,7 @@ SECTIONS {
 
 	.fast_data : {
 		bsp_section_fast_data_begin = .;
-		*(.bsp_fast_data)
+		*(SORT(.bsp_fast_data*))
 		bsp_section_fast_data_end = .;
 	} > REGION_FAST_DATA AT > REGION_FAST_DATA_LOAD
 	bsp_section_fast_data_size = bsp_section_fast_data_end - bsp_section_fast_data_begin;
@@ -259,6 +260,7 @@ SECTIONS {
 
 	.data : {
 		bsp_section_data_begin = .;
+		*(SORT(.bsp_data*))
 		*(.data .data.* .gnu.linkonce.d.*)
 		SORT(CONSTRUCTORS)
 	} > REGION_DATA AT > REGION_DATA_LOAD
@@ -330,7 +332,7 @@ SECTIONS {
 
 	.nocache : {
 		bsp_section_nocache_begin = .;
-		*(.bsp_nocache)
+		*(SORT(.bsp_nocache*))
 		bsp_section_nocache_end = .;
 	} > REGION_NOCACHE AT > REGION_NOCACHE_LOAD
 	bsp_section_nocache_size = bsp_section_nocache_end - bsp_section_nocache_begin;




More information about the vc mailing list