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 | 44a78273f04235dbc2e707de54fca4bceb64ccf9 (patch) | |
tree | 1fec257e67dfe543a8afdd53ea82de3bb6427d18 /bfd/cofflink.c | |
parent | f5c7b3f20683316a69361e6050aa5feab53566bc (diff) | |
download | gdb-44a78273f04235dbc2e707de54fca4bceb64ccf9.tar.gz |
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 47716ac2eae..e6dcd88edc1 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 |