https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66394
--- Comment #8 from Stanisław Halik <sthalik at misaki dot pl> --- I can confirm all the code builds with LTO and -fmerge-all-constants after applying the patch. LTO with linker plugin results in unresolved symbols, but this is for another time. Best regards.