From 0d671d709f5a9cb07bb28540c478a405e01658bb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 27 May 2013 12:43:53 +0200 Subject: 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 file changed, 9 insertions(+), 9 deletions(-) (limited to 'c/src/lib/libbsp/arm/shared/startup') diff --git a/c/src/lib/libbsp/arm/shared/startup/linkcmds.base b/c/src/lib/libbsp/arm/shared/startup/linkcmds.base index 2ef80a0a40..27f5acb125 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) -- cgit v1.2.3