[rtems commit] bsps/arm: Move .fast_text section

Sebastian Huber sebh at rtems.org
Mon May 27 10:45:20 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon May 27 12:43:53 2013 +0200

bsps/arm: Move .fast_text section

Move the .fast_text section after the .vector section.  The .fast_test
section is normally not empty in case some functions should execute from
an internal SRAM.  This would be also the area for the .vector section.
The vector table must be the first content of such an area.

---

 c/src/lib/libbsp/arm/shared/startup/linkcmds.base |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/c/src/lib/libbsp/arm/shared/startup/linkcmds.base b/c/src/lib/libbsp/arm/shared/startup/linkcmds.base
index 2ef80a0..27f5acb 100644
--- a/c/src/lib/libbsp/arm/shared/startup/linkcmds.base
+++ b/c/src/lib/libbsp/arm/shared/startup/linkcmds.base
@@ -73,15 +73,6 @@ SECTIONS {
 		. = ALIGN (bsp_section_xbarrier_align);
 	} > REGION_VECTOR
 
-	.fast_text : {
-		bsp_section_fast_text_begin = .;
-		*(.bsp_fast_text)
-		bsp_section_fast_text_end = .;
-	} > REGION_FAST_TEXT AT > REGION_FAST_TEXT_LOAD
-	bsp_section_fast_text_size = bsp_section_fast_text_end - bsp_section_fast_text_begin;
-	bsp_section_fast_text_load_begin = LOADADDR (.fast_text);
-	bsp_section_fast_text_load_end = bsp_section_fast_text_load_begin + bsp_section_fast_text_size;
-
 	.text : ALIGN(32) {
 		bsp_section_text_begin = .;
 
@@ -341,6 +332,15 @@ SECTIONS {
 	bsp_vector_table_begin = DEFINED (bsp_vector_table_in_start_section) ? bsp_section_start_begin : bsp_section_vector_begin;
 	bsp_vector_table_end = bsp_vector_table_begin + bsp_vector_table_size;
 
+	.fast_text : {
+		bsp_section_fast_text_begin = .;
+		*(.bsp_fast_text)
+		bsp_section_fast_text_end = .;
+	} > REGION_FAST_TEXT AT > REGION_FAST_TEXT_LOAD
+	bsp_section_fast_text_size = bsp_section_fast_text_end - bsp_section_fast_text_begin;
+	bsp_section_fast_text_load_begin = LOADADDR (.fast_text);
+	bsp_section_fast_text_load_end = bsp_section_fast_text_load_begin + bsp_section_fast_text_size;
+
 	.fast_data : ALIGN(32) {
 		bsp_section_fast_data_begin = .;
 		*(.bsp_fast_data)




More information about the vc mailing list