mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
feat(core): modify bootloader linkerscript to support rust
This commit is contained in:
parent
edeccde9f3
commit
3b23621bea
@ -23,7 +23,7 @@ ccmram_end = ORIGIN(CCMRAM) + LENGTH(CCMRAM);
|
||||
sram_start = ORIGIN(SRAM);
|
||||
sram_end = ORIGIN(SRAM) + LENGTH(SRAM);
|
||||
|
||||
_codelen = SIZEOF(.flash) + SIZEOF(.data);
|
||||
_codelen = SIZEOF(.flash) + SIZEOF(.data) + SIZEOF(.exidx) + SIZEOF(.align);
|
||||
|
||||
SECTIONS {
|
||||
.header : ALIGN(4) {
|
||||
@ -36,6 +36,15 @@ SECTIONS {
|
||||
*(.text*);
|
||||
. = ALIGN(4);
|
||||
*(.rodata*);
|
||||
. = ALIGN(4);
|
||||
} >FLASH AT>FLASH
|
||||
|
||||
/* exception handling info generated by llvm which should consist of 8 bytes of "cantunwind" */
|
||||
.exidx : ALIGN(4) {
|
||||
*(.ARM.exidx*);
|
||||
} >FLASH AT>FLASH
|
||||
|
||||
.align : ALIGN(4) {
|
||||
. = ALIGN(512);
|
||||
} >FLASH AT>FLASH
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user