[PATCH] D52749: [LLD][COFF] Fix CRT global initializers
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 1 14:30:13 PDT 2018
rnk added a comment.
In https://reviews.llvm.org/D52749#1251695, @aganea wrote:
> Please note that this issue occurs only when using MSVC cl.exe. Compiling with clang-cl.exe does not expose the issue.
I was going to say, I think clang generates a single initializer function to avoid relying on the linker's chosen section order.
That's crummy, though. I guess we could limit it to the CRT section, and say anyone relying on section order corresponding to link line order in other sections is out of luck.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D52749
More information about the llvm-commits
mailing list