Expand list of always loaded Windows shared libs
authorTamar Christina <tamar@zhox.com>
Tue, 14 Feb 2017 14:43:02 +0000 (09:43 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 14 Feb 2017 15:53:01 +0000 (10:53 -0500)
commit04f67c9970c0e2599e0b2a29353b1acec72dacf0
treee3ecfe16febb021c610eceac660c85e1122842ff
parent2484d4dae65c81f218dcfe494b963b2630bb8fa6
Expand list of always loaded Windows shared libs

When the `GCC` driver envokes the pipeline a `SPEC` is used to determine
how to configure the compiler and which libraries to pass along.

For Windows/mingw, this specfile is
https://github.com/gcc-mirror/gcc/blob/master/gcc/config/i386/mingw32.h

This expands the list of base DLLs with the ones that GCC always links,
and adds extra sibling dlls of `stdc++` in case it is linked in.

Following D3028 this patch only needs to load the always load only the
top level individual shared libs.

Test Plan: ./validate

Reviewers: RyanGlScott, austin, bgamari, erikd, simonmar

Reviewed By: bgamari

Subscribers: RyanGlScott, thomie, #ghc_windows_task_force

Differential Revision: https://phabricator.haskell.org/D3029
docs/users_guide/8.2.1-notes.rst
rts/linker/PEi386.c