Skip to content

Commit 66d90e7

Browse files
mspederkartben
authored andcommitted
soc: nxp_kinetis: Mark __kinetis_flash_config with __used attribute
This is a fix for issue #90426 . Marking __kinetis_flash_config with __used attribute prevents unwanted deletion when compiling with LTO. Signed-off-by: Matthieu Speder <[email protected]>
1 parent 481711e commit 66d90e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/nxp/kinetis/flash_configuration.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <zephyr/kernel.h>
88
#include <zephyr/linker/sections.h>
99

10-
uint8_t __kinetis_flash_config_section __kinetis_flash_config[] = {
10+
uint8_t __used __kinetis_flash_config_section __kinetis_flash_config[] = {
1111
/* Backdoor Comparison Key (unused) */
1212
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
1313

0 commit comments

Comments
 (0)