[rtems commit] bsps/powerpc: Move .fast_text after .text section

Sebastian Huber sebh at rtems.org
Mon Dec 3 12:14:53 UTC 2012


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 13 15:00:53 2012 +0100

bsps/powerpc: Move .fast_text after .text section

---

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

diff --git a/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base b/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
index 1768361..253a025 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
+++ b/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
@@ -51,15 +51,6 @@ SECTIONS {
 		. = ALIGN (bsp_section_xbarrier_align);
 	} > REGION_TEXT
 
-	.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 : {
 		bsp_section_text_begin = .;
 		*(.text.unlikely .text.*_unlikely)
@@ -79,6 +70,15 @@ SECTIONS {
 	bsp_section_text_load_begin = LOADADDR (.text);
 	bsp_section_text_load_end = bsp_section_text_load_begin + bsp_section_text_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;
+
 	.robarrier : {
 		. = ALIGN (bsp_section_robarrier_align);
 	} > REGION_RODATA




More information about the vc mailing list