Skip to content

Some more LTO-enabled build issues

viccie30 requested to merge (removed):lto into master

GCC LTO deletes unreferenced symbols, even when these are used in ways it cannot see.

Specifically, it apparently regards symbols in .init_array unreferenced, even when they are used at runtime. An explicit attribute(used) helps GCC with that.

Merge request reports