MIMXRT1050_EVt: keep hyperflash_config/image_vector_table symbols in LTO builds
Add a "used" attribute to hyperflash_config/image_vector_table to fix ARMC6 build with
the "-flto" flag.
(Error: L6236E: No section matches selector - no section to be FIRST/LAST. )

This attribute, attached to a function/variable, means that code must be emitted
for the function even if it appears that the function is not referenced.
ls
1 parent cf1e1dd commit 5fdacc4fb3a42413a38ec1a158f180784feef7ae
@Maciej Bocianski Maciej Bocianski authored on 4 Dec 2019
Showing 2 changed files
View
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/TARGET_EVK/xip/evkbimxrt1050_flexspi_nor_config.c
View
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_flexspi_nor_boot.c