diff options
| author | weety <[email protected]> | 2017-10-19 23:46:17 +0800 |
|---|---|---|
| committer | weety <[email protected]> | 2017-10-19 23:46:17 +0800 |
| commit | 6085f6826d9c19a9d0c7f3feafbd0a5996d7ec2e (patch) | |
| tree | 81a3b52510aaa627cb24b83cdefe991893d9d909 /bsp/at91sam9260/link_scripts | |
| parent | e448ecc6ad805109480ecc191f0e2d786216a297 (diff) | |
[bsp][at91sam9260] Fix the problem of the finsh function failure by using component initialization.
Diffstat (limited to 'bsp/at91sam9260/link_scripts')
| -rw-r--r-- | bsp/at91sam9260/link_scripts/at91sam9260_ram.ld | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bsp/at91sam9260/link_scripts/at91sam9260_ram.ld b/bsp/at91sam9260/link_scripts/at91sam9260_ram.ld index 258881b082..9e4397a69a 100644 --- a/bsp/at91sam9260/link_scripts/at91sam9260_ram.ld +++ b/bsp/at91sam9260/link_scripts/at91sam9260_ram.ld @@ -1,6 +1,6 @@ OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") OUTPUT_ARCH(arm) -ENTRY(entry) +ENTRY(start) SECTIONS { . = 0x20000000; @@ -34,6 +34,14 @@ SECTIONS __rtmsymtab_start = .; KEEP(*(RTMSymTab)) __rtmsymtab_end = .; + . = ALIGN(4); + + /* section information for initial. */ + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); } . = ALIGN(4); |
