Default import libraries to be compatible with the MS linker, and
commitc3f5f39d864eaf38d4d6e2122823ef392e5dcc1c
authorDoug Semler <dougsemler@gmail.com>
Wed, 14 Apr 2010 13:24:57 +0000 (14 09:24 -0400)
committerDoug Semler <dougsemler@gmail.com>
Thu, 6 May 2010 02:12:24 +0000 (5 22:12 -0400)
tree1d91adfd0ee7ca9fdff677a8fcee879606c503e4
parentb89bdf9682b76c803d2d5781238e1ccaf032d25a
Default import libraries to be compatible with the MS linker, and
create a parameter to allow the original behavior.

ld/ChangeLog:

* pe-dll.h (pe_mslink_compatible_implib): Declare new global.
* pep-dll.h (pep_mslink_compatible_implib): Declare new global.
* pep-dll.c: Define to use during PE+ object build.
* pe-dll.c (pe_mslink_compatible_implib): Define.
  (make_head): Add new parameter to indicate whether function
    is being called when making import library.
    When making compatible import library, use the dll name
    instead of unique name.
  (make_one): Likewise.
  (make_tail): Likewise.
  (pe_dll_generate_implib): Indicate that an import library
    is being generated.
  (pe_process_import_defs): Indicate that an import library
    is not being generated.
* emultempl/pe.em: Add parameter --incompatible-mslink-implib
* emultempl/pep.em: Likewise.
ld/emultempl/pe.em
ld/emultempl/pep.em
ld/pe-dll.c
ld/pe-dll.h
ld/pep-dll.c
ld/pep-dll.h