4.3.10.7 Keep Attribute

The keep attribute prevents the linker from removing unused objects, regardless of the selected compiler optimization level or any garbage collection (--gc-sections linker option) performed by the linker.