aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2018-03-23 12:08:54 +0000
committerNick Clifton <nickc@redhat.com>2018-03-23 12:08:54 +0000
commitf6c4d4b152a985f355cd1552ce01c99a589c936f (patch)
tree09ca00ed66b0e1c2ed9715b68314bb407c0c4cd7 /ld/emultempl
parent376be529a7c99a70050bc48c51d891f1bea9777f (diff)
downloadgdb-f6c4d4b152a985f355cd1552ce01c99a589c936f.zip
gdb-f6c4d4b152a985f355cd1552ce01c99a589c936f.tar.gz
gdb-f6c4d4b152a985f355cd1552ce01c99a589c936f.tar.bz2
Add an extra library name template to the list used by the WIN32 targets.
PR 22948 * emultempl/pe.em (open_dynamic_archive): Add libXXX.lib template to library name list. * emultempl/pep.em (open_dynamic_archive): Likewise. * ld.texinfo (WIN32): Update documentation.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/pe.em2
-rw-r--r--ld/emultempl/pep.em2
2 files changed, 4 insertions, 0 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index ffa8b74..5cc933a 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -2347,6 +2347,8 @@ gld_${EMULATION_NAME}_open_dynamic_archive
{ "lib%s.a", FALSE },
/* The 'native' spelling of an import lib name is "foo.lib". */
{ "%s.lib", FALSE },
+ /* PR 22948 - Check for an import library. */
+ { "lib%s.lib", FALSE },
#ifdef DLL_SUPPORT
/* Try "<prefix>foo.dll" (preferred dll name, if specified). */
{ "%s%s.dll", TRUE },
diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em
index cea210c..96942ec 100644
--- a/ld/emultempl/pep.em
+++ b/ld/emultempl/pep.em
@@ -2120,6 +2120,8 @@ gld_${EMULATION_NAME}_open_dynamic_archive
{ "lib%s.a", FALSE },
/* The 'native' spelling of an import lib name is "foo.lib". */
{ "%s.lib", FALSE },
+ /* PR 22948 - Check for an import library. */
+ { "lib%s.lib", FALSE },
#ifdef DLL_SUPPORT
/* Try "<prefix>foo.dll" (preferred dll name, if specified). */
{ "%s%s.dll", TRUE },