From 73797b7478d3cc42ff7b723287314b98afb98cd9 Mon Sep 17 00:00:00 2001 From: nickc Date: Mon, 7 Oct 2002 16:36:10 +0000 Subject: [PATCH] Don't re-export auto-import symbols. --- ld/ChangeLog | 6 ++++++ ld/pe-dll.c | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 7961079ad2..c2575d53f1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2002-10-07 Ralf Habacker + + * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export + auto-import symbols. + (make_one): Create _nm_ for data only. + 2002-10-05 Elias Athanasopoulos * ldlang.c (lang_file_exist): New function. diff --git a/ld/pe-dll.c b/ld/pe-dll.c index fd70c781b5..367759a114 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); -- 2.11.0