NUMAKER_PFM_NUC472: keep __vector_handlers symbol in LTO builds
Add a "used" attribute to __vector_handlers 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 ad7f27b commit 50c3b100a8e71504422b335985686f24f2bfa038
@Maciej Bocianski Maciej Bocianski authored on 4 Dec 2019
Showing 1 changed file
View
targets/TARGET_NUVOTON/TARGET_NUC472/device/startup_NUC472_442.c