在 2022/12/28 06:13, Martin Storsjö 写道:
I tested this now.
With LLVM, adding these used attributes doesn't seem to help, but the TLS callbacks fail both before
and after this patch. So for that, some other solution is needed. (Additionally, having
mingw-w64-crt built with LTO triggers a failed
On Tue, 27 Dec 2022, Martin Storsjö wrote:
On Tue, 27 Dec 2022, LIU Hao wrote:
--
Thanks - it seems like a good idea to include it via this macro, as
indeed probably all such special section objects need this treatment.
I'd love to try this out with LTO on the crt files with LLVM too - b
On Tuesday 27 December 2022 14:38:00 LIU Hao wrote:
> Variables that are required to be placed in explicit sections probably
> have special meanings, and shall not be eliminated by LTO. Preserving
> all of them might look an overkill, but should be safest.
>
> Signed-off-by: LIU Hao
> ---
> ming
On Tue, 27 Dec 2022, LIU Hao wrote:
--
Thanks - it seems like a good idea to include it via this macro, as indeed
probably all such special section objects need this treatment.
I'd love to try this out with LTO on the crt files with LLVM too - but I
guess this patch should either fix thin
--
Best regards,
LIU Hao
From 1288ab9f2a965bcca5513b36bd29e906c4b7ee2f Mon Sep 17 00:00:00 2001
From: LIU Hao
Date: Tue, 27 Dec 2022 14:32:37 +0800
Subject: [PATCH] crt: Preserve special variables when LTO is in effect
Variables that are required to be placed in explicit sections probably
have