From 7b0eaa22d7c7dfd4d96ec681b6e58f72aaed84b2 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Sun, 24 Oct 2004 01:00:12 +0000 Subject: * pe-dll.c (process_def_file): Don't export all symbols by default if building a position-independent executable. --- ld/pe-dll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/pe-dll.c') diff --git a/ld/pe-dll.c b/ld/pe-dll.c index 8813de6..46b0a13 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -527,7 +527,7 @@ process_def_file (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info) /* If we are not building a DLL, when there are no exports we do not build an export table at all. */ if (!pe_dll_export_everything && pe_def_file->num_exports == 0 - && !info->shared) + && info->executable) return; /* Now, maybe export everything else the default way. */ -- cgit v1.1