From 309cd5ef58af09a45cdc76e226bacaf0d0438727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Fri, 10 Jul 2015 10:46:13 +0200 Subject: [PATCH 1/4] cpu/kinetis_common: Add __attribute__((used)) to flash configuration field --- cpu/kinetis_common/fcfield.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/kinetis_common/fcfield.c b/cpu/kinetis_common/fcfield.c index 75074f43f4..b09202416d 100644 --- a/cpu/kinetis_common/fcfield.c +++ b/cpu/kinetis_common/fcfield.c @@ -23,7 +23,7 @@ #include /* 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 */ From 570d188a26f1b05368b778e697df671f3a5314a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Fri, 10 Jul 2015 10:46:54 +0200 Subject: [PATCH 2/4] cpu/k60: Add __attribute__((used)) to interrupt vector --- cpu/k60/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/k60/vector.c b/cpu/k60/vector.c index 31858549db..ce6c722745 100644 --- a/cpu/k60/vector.c +++ b/cpu/k60/vector.c @@ -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 */ From a1d2ecc3dea80cb650554127c74fafd86d41797d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Fri, 10 Jul 2015 10:50:49 +0200 Subject: [PATCH 3/4] cpu/k64f: Add __attribute__((used)) to interrupt vector --- cpu/k64f/vectors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/k64f/vectors.c b/cpu/k64f/vectors.c index 2d5096f0c5..0c8c8ab143 100644 --- a/cpu/k64f/vectors.c +++ b/cpu/k64f/vectors.c @@ -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 */ From 8dd81e8d9a663c904cfab89d4e4eb289bde240d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Fri, 10 Jul 2015 10:50:58 +0200 Subject: [PATCH 4/4] cpu/kw2x: Add __attribute__((used)) to interrupt vector --- cpu/kw2x/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/kw2x/vector.c b/cpu/kw2x/vector.c index b5c5afb7be..1b645615e5 100644 --- a/cpu/kw2x/vector.c +++ b/cpu/kw2x/vector.c @@ -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 */