On Saturday 24 December 2022 01:00:59 LIU Hao wrote:
> 在 2022-12-24 00:18, Pali Rohár 写道:
> > What is the reason? Maybe it was gcc/ld bug which this patch workarounds?
> > 
> 
> Generally speaking, all variables that are required to be placed in special
> sections to take effect, but are not otherwise referenced, are likely to be
> affected by LTO, and have to be tested carefully. At the moment, these are
> `__xl_b`, `__xl_c` and `_tls_used`, but there might be more.

Ou right. They would also require __attribute__((used)) for LTO builds.
I just tested simple single process/thread console applications and they
worked.

Do you have any test case application which would be affected if these
symbols are eliminated?


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to