diff options
| author | armink <[email protected]> | 2017-07-27 13:58:07 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2017-07-27 13:58:07 +0800 |
| commit | 573c294216e37268d5387296c760527d2f5eab7d (patch) | |
| tree | 8ab70b99c5c23b1fbd714b1b422f18e4415e68c2 /bsp/mb9bf618s | |
| parent | 763d7456e31e8188c0b9848d8b6eab01f884c265 (diff) | |
[BSP] Fix component initialization functions may be not sequential storage on ROM when used for IAR linker.
Diffstat (limited to 'bsp/mb9bf618s')
| -rw-r--r-- | bsp/mb9bf618s/rtthread-fm3.icf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bsp/mb9bf618s/rtthread-fm3.icf b/bsp/mb9bf618s/rtthread-fm3.icf index be53bfb67e..7876fa0c81 100644 --- a/bsp/mb9bf618s/rtthread-fm3.icf +++ b/bsp/mb9bf618s/rtthread-fm3.icf @@ -20,6 +20,7 @@ define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFED define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
+define block RTT_INIT_FUNC with fixed order { readonly section .rti_fn* };
initialize by copy { readwrite };
do not initialize { section .noinit };
@@ -29,5 +30,5 @@ keep { section VSymTab }; keep { section .rti_fn* };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
-place in ROM_region { readonly };
+place in ROM_region { readonly, block RTT_INIT_FUNC };
place in RAM_region { readwrite, block CSTACK, last block HEAP };
|
