mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
Merge pull request #4752 from gebart/pr/kinetis-lto-used
Kinetis: Add __attribute__((used)) to interrupt vector to fix LTO error
This commit is contained in:
commit
c329351a08
@ -157,7 +157,7 @@ WEAK_DEFAULT void isr_software(void);
|
||||
/**
|
||||
* @brief Interrupt vector definition
|
||||
*/
|
||||
__attribute__((section(".vector_table")))
|
||||
__attribute__((used, section(".vector_table")))
|
||||
const void *interrupt_vector[] = {
|
||||
/* Stack pointer */
|
||||
(void *)(&_estack), /* pointer to the top of the empty stack */
|
||||
|
||||
@ -132,7 +132,7 @@ WEAK_DEFAULT void isr_enet_receive(void);
|
||||
WEAK_DEFAULT void isr_enet_error(void);
|
||||
|
||||
/* interrupt vector table */
|
||||
__attribute__((section(".vector_table")))
|
||||
__attribute__((used, section(".vector_table")))
|
||||
const void *interrupt_vector[] = {
|
||||
/* Stack pointer */
|
||||
(void *)(&_estack), /* pointer to the top of the empty stack */
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
/* fcfield table */
|
||||
__attribute__((weak, section(".fcfield")))
|
||||
__attribute__((weak, used, section(".fcfield")))
|
||||
const uint8_t flash_configuration_field[] = {
|
||||
0xff, /* backdoor comparison key 3., offset: 0x0 */
|
||||
0xff, /* backdoor comparison key 2., offset: 0x1 */
|
||||
|
||||
@ -108,7 +108,7 @@ WEAK_DEFAULT void isr_porte(void);
|
||||
WEAK_DEFAULT void isr_swi(void);
|
||||
|
||||
/* interrupt vector table */
|
||||
__attribute__((section(".vector_table")))
|
||||
__attribute__((used, section(".vector_table")))
|
||||
const void *interrupt_vector[] = {
|
||||
/* Stack pointer */
|
||||
(void *)(&_estack), /* pointer to the top of the empty stack */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user