[llvm-commits] Patch for pr9213: Emit global_ctors into MSVCRT-compatible section for win32 targets

Joe Groff arcata at gmail.com
Fri Jan 20 16:07:41 PST 2012

On Thu, Jan 19, 2012 at 1:34 PM, Joe Groff <arcata at gmail.com> wrote:
> Here's a partial fix for pr9213 that emits global constructors into
> the .CRT$XCU section instead of .ctors when targeting win32.

After testing on Win64, it appears that the .CRT$XCU section must be
read-only, otherwise link sprays warnings and initializers don't get
run. Here's a revised patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-pr9213-2.diff
Type: application/octet-stream
Size: 2762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120120/69856c8c/attachment.obj>

More information about the llvm-commits mailing list