1
0
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:
Joakim Nohlgård 2016-02-08 15:38:32 +01:00
commit c329351a08
4 changed files with 4 additions and 4 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */