[llvm-commits] Patch for pr9213: Emit global_ctors into MSVCRT-compatible '.CRT$XCU' section for win32 targets

Joe Groff arcata at gmail.com
Mon Feb 20 22:46:55 PST 2012

Here's a partial fix I sent a while back for pr9213. With this patch,
global_ctors pointers will be generated into the '.CRT$XCU' section of
the COFF output file instead of '.ctors' when targeting *-*-win32, so
that global_ctors will be run automatically by the Microsoft CRT.
(MSVCRT does not support an analog to the sysv '.dtors' section, so
this patch does not affect global_dtors, which still will not be run
by the stock CRT on win32 targets.) Let me know if any changes are
necessary. Thanks.

-------------- 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/20120220/ec9ec43b/attachment.obj>

More information about the llvm-commits mailing list