[PATCH] D40408: [LLD] [COFF] Implement numerical sorting of constructors with priority

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 24 01:43:15 PST 2017


mstorsjo added a comment.

In https://reviews.llvm.org/D40408#934167, @ruiu wrote:

> Ah, okay, this is the lld-side patch. I wonder if you can't just create .ctors$12345 instead of .ctors.12345 for COFF. Do you need this?


On the LLVM side, I'm trying to match what GCC does, to allow using this with clang as compiler while using the GNU binutils in MinGW.

(Even if we'd make LLVM produce .ctors$12345, we need to sort them numerically so that .ctors$5 would end up before .ctors$12345.)


https://reviews.llvm.org/D40408





More information about the llvm-commits mailing list