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

Michael Spencer bigcheesegs at gmail.com
Thu Feb 23 14:01:05 PST 2012


On Mon, Feb 20, 2012 at 10:46 PM, Joe Groff <arcata at gmail.com> wrote:
> 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.
>
> -Joe

Committed as r151289.

- Michael Spencer



More information about the llvm-commits mailing list