diff options
author | Nick Clifton <nickc@redhat.com> | 2002-10-07 16:36:11 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-10-07 16:36:11 +0000 |
commit | 39cebe23dad98aaac4ba952caa5a128f1f8ece30 (patch) | |
tree | a3c33895fe20a52a81e65848b6b39bac440f1578 /ld/pe-dll.c | |
parent | a8fcf37848630be3b960c7fc026ea55af5766ad1 (diff) | |
download | gdb-39cebe23dad98aaac4ba952caa5a128f1f8ece30.zip gdb-39cebe23dad98aaac4ba952caa5a128f1f8ece30.tar.gz gdb-39cebe23dad98aaac4ba952caa5a128f1f8ece30.tar.bz2 |
Don't re-export auto-import symbols.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r-- | ld/pe-dll.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c index fd70c78..367759a 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -257,6 +257,8 @@ static autofilter_entry_type autofilter_symbolprefixlist[] = /* { "__imp_", 6 }, */ /* Do __imp_ explicitly to save time. */ { "__rtti_", 7 }, + /* Don't re-export auto-imported symbols. */ + { "_nm_", 4 }, { "__builtin_", 10 }, /* Don't export symbols specifying internal DLL layout. */ { "_head_", 6 }, @@ -1814,8 +1816,10 @@ make_one (exp, parent) quick_symbol (abfd, U ("_head_"), dll_symname, "", UNDSEC, BSF_GLOBAL, 0); quick_symbol (abfd, U ("_imp__"), exp->internal_name, "", id5, BSF_GLOBAL, 0); /* Symbol to reference ord/name of imported - symbol, used to implement auto-import. */ - quick_symbol (abfd, U("_nm__"), exp->internal_name, "", id6, BSF_GLOBAL, 0); + data symbol, used to implement auto-import. */ + if (exp->flag_data) + quick_symbol (abfd, U("_nm__"), exp->internal_name, "", id6, + BSF_GLOBAL,0); if (pe_dll_compat_implib) quick_symbol (abfd, U ("__imp_"), exp->internal_name, "", id5, BSF_GLOBAL, 0); |