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/beaglebone | |
| parent | 763d7456e31e8188c0b9848d8b6eab01f884c265 (diff) | |
[BSP] Fix component initialization functions may be not sequential storage on ROM when used for IAR linker.
Diffstat (limited to 'bsp/beaglebone')
| -rw-r--r-- | bsp/beaglebone/am335x_DDR.icf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bsp/beaglebone/am335x_DDR.icf b/bsp/beaglebone/am335x_DDR.icf index 8f158d8432..7f17ec07ec 100644 --- a/bsp/beaglebone/am335x_DDR.icf +++ b/bsp/beaglebone/am335x_DDR.icf @@ -29,6 +29,7 @@ define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { }; define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };
define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };
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 };
@@ -38,7 +39,7 @@ 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, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
block UND_STACK, block ABT_STACK, block HEAP };
|
