diff options
author | Martin Storsjo <martin@martin.st> | 2017-11-23 12:07:24 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-11-23 12:07:24 +0000 |
commit | 9d9c67b06c1bf4c4550e3de0eb575c2bfbe96df9 (patch) | |
tree | 32010e8c80768beeaa608d28f2ae90c8fa000bba /bfd | |
parent | 65f3ed048fa0741e874c7aa372f9ddba153a2949 (diff) | |
download | gdb-9d9c67b06c1bf4c4550e3de0eb575c2bfbe96df9.zip gdb-9d9c67b06c1bf4c4550e3de0eb575c2bfbe96df9.tar.gz gdb-9d9c67b06c1bf4c4550e3de0eb575c2bfbe96df9.tar.bz2 |
Add libmsvcrt, libmsvcrt-os and libucrtbase to the list of libraries for which the automatic generation of exported variables should be disabled.
In the latest git version of mingw-w64, one can set the default
libmsvcrt.a to actually be the import library of another CRT version,
to facilitate switching to ucrtbase.dll. In these versions, the
traditional libmsvcrt.a (for linking to msvcrt.dll) is also provided
with the name libmsvcrt-os.a.
The import libraries for the CRT also contain a number of compatibility
wrapper functions. The ones in libmsvcrt.a have so far been excluded
automatically since they in most cases come with a corresponding
__imp_foo function. None of these make sense to export automatically
from a DLL though, so add these libraries to the exclude list.
libucrtbase.a contains a number of compatibility wrapper functions
that don't have a corresponding __imp_foo symbol, which cause
these symbols to be exported from DLLs.
This can be worked around on the mingw-w64 side by adding extra
__imp_ symbols, but since they aren't strictly necessary for linking
to succeed, it's probably better long-term to add these libraries to
the exclusion list.
ld * pe-dll.c (autofilter_liblist): Add libmsvcrt, libmsvcrt-os and
libucrtbase.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions