diff options
author | Charles Wilson <cygwin@cwilson.fastmail.fm> | 2001-08-02 23:05:54 +0000 |
---|---|---|
committer | Charles Wilson <cygwin@cwilson.fastmail.fm> | 2001-08-02 23:05:54 +0000 |
commit | 8ceb7a1b8e7893e3859433dd99174055a6d47aad (patch) | |
tree | d5eaa323f8e2e3754eff1bd557cfef72d85b4c1d /bfd/cofflink.c | |
parent | decc3638003f7c461b0870e45aa8f179ea501208 (diff) | |
download | gdb-8ceb7a1b8e7893e3859433dd99174055a6d47aad.zip gdb-8ceb7a1b8e7893e3859433dd99174055a6d47aad.tar.gz gdb-8ceb7a1b8e7893e3859433dd99174055a6d47aad.tar.bz2 |
2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
* cofflink.c (coff_link_check_ar_symbols): also search for
__imp__symbol as well as _symbol.
* linker.c (_bfd_generic_link_add_archive_symbols): also
search for __imp__symbol as well as _symbol.
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r-- | bfd/cofflink.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 47716ac..e6dcd88 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -277,6 +277,16 @@ coff_link_check_ar_symbols (abfd, info, pneeded) return false; h = bfd_link_hash_lookup (info->hash, name, false, false, true); + /* auto import */ + if (!h && info->pei386_auto_import) + { + if (!strncmp (name,"__imp_", 6)) + { + h = + bfd_link_hash_lookup (info->hash, name + 6, false, false, + true); + } + } /* We are only interested in symbols that are currently undefined. If a symbol is currently known to be common, COFF linkers do not bring in an object file which defines |