cortexm-m-generic: Make the linker script LTO-safe by making sure the vector table is always retained
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
547b7c0e72
commit
133a1ddfaf
@@ -43,7 +43,7 @@ ENTRY(reset_handler)
|
||||
SECTIONS
|
||||
{
|
||||
.text : {
|
||||
*(.vectors) /* Vector table */
|
||||
KEEP(*(.vectors)) /* Vector table */
|
||||
*(.text*) /* Program code */
|
||||
. = ALIGN(4);
|
||||
*(.rodata*) /* Read-only data */
|
||||
@@ -122,4 +122,3 @@ SECTIONS
|
||||
}
|
||||
|
||||
PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user