aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>1998-11-09 23:06:47 +0000
committerDJ Delorie <dj@redhat.com>1998-11-09 23:06:47 +0000
commit69c4fd86f99b86d40dfee1c9f857f6127e56efd2 (patch)
treee6927e4c83014fdd74c5440b9c027f94a22a8734 /ld
parent854d50bd515843fae38c54d9b4ca1be923d72bef (diff)
downloadgdb-69c4fd86f99b86d40dfee1c9f857f6127e56efd2.zip
gdb-69c4fd86f99b86d40dfee1c9f857f6127e56efd2.tar.gz
gdb-69c4fd86f99b86d40dfee1c9f857f6127e56efd2.tar.bz2
* pe-dll.c (process_def_file): auto-export everything if
nothing is otherwise exported.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog2
-rw-r--r--ld/pe-dll.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index a9ac625..10805fc 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -13,6 +13,8 @@ Mon Nov 9 16:41:30 1998 DJ Delorie <dj@cygnus.com>
* Makefile.am: add new files and target-specific extra files
* emultempl/pe.em (gld_i386_list_options): list dll-specific
options.
+ * pe-dll.c (process_def_file): auto-export everything if
+ nothing is otherwise exported.
Wed Nov 4 16:39:18 1998 Nick Clifton <nickc@cygnus.com>
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index af6e859..abfd9d4 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -205,7 +205,7 @@ process_def_file (abfd, info)
/* Now, maybe export everything else the default way */
- if (pe_dll_export_everything)
+ if (pe_dll_export_everything || pe_def_file->num_exports == 0)
{
for (b = info->input_bfds; b; b = b->link_next)
{