NUMAKER_PFM_NANO130: 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 ddd2cf8 commit ad7f27bf7793e2f4a09a3d9271039757b7e7a632
@Maciej Bocianski Maciej Bocianski authored on 4 Dec 2019
Showing 1 changed file
View
targets/TARGET_NUVOTON/TARGET_NANO100/device/startup_Nano100Series.c