From 69c4fd86f99b86d40dfee1c9f857f6127e56efd2 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 9 Nov 1998 23:06:47 +0000 Subject: [PATCH] * pe-dll.c (process_def_file): auto-export everything if nothing is otherwise exported. --- ld/ChangeLog | 2 ++ ld/pe-dll.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index a9ac6251149..10805fc93d3 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -13,6 +13,8 @@ Mon Nov 9 16:41:30 1998 DJ Delorie * 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 diff --git a/ld/pe-dll.c b/ld/pe-dll.c index af6e859914c..abfd9d4b5ea 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) { -- 2.30.2