> Yeh, precisely. The ironly file is a placeholder into which we put the > symbols found in the lto symtab so that they can take part in the link and > their resolutions be determined. We have no way of conveying any symbol type
The error comes out after the lto1 invocation, so why the ironly section is still around? I would expect it to be discarded at that time and replaced by whatever compiler returns to you. On the other hand, discarding won't help if there was non-LTO module referencing TLS var also used by LTO module I guess.