summaryrefslogtreecommitdiff
path: root/ld/pe-dll.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r--ld/pe-dll.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 24a5118966..fbf180ec0f 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -718,6 +718,16 @@ process_def_file_and_drectve (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *
}
}
+ if (pe_def_file->exclude_symbols)
+ {
+ def_file_exclude_symbol *ac = pe_def_file->exclude_symbols;
+ while (ac)
+ {
+ pe_dll_add_excludes (ac->symbol_name, EXCLUDESYMS);
+ ac = ac->next;
+ }
+ }
+
/* If we are building an executable and there is nothing
to export, we do not build an export table at all. */
if (bfd_link_executable (info) && pe_def_file->num_exports == 0