diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2004-10-24 01:00:12 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2004-10-24 01:00:12 +0000 |
commit | 7b0eaa22d7c7dfd4d96ec681b6e58f72aaed84b2 (patch) | |
tree | 8944ba2eacb0bf3afb2a013706f005c7c7922598 | |
parent | 04d3ad575b6ff44b8c464d31d8d0d79eeebbbd68 (diff) | |
download | fsf-binutils-gdb-7b0eaa22d7c7dfd4d96ec681b6e58f72aaed84b2.zip fsf-binutils-gdb-7b0eaa22d7c7dfd4d96ec681b6e58f72aaed84b2.tar.gz fsf-binutils-gdb-7b0eaa22d7c7dfd4d96ec681b6e58f72aaed84b2.tar.bz2 |
* pe-dll.c (process_def_file): Don't export all symbols by default if
building a position-independent executable.
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/pe-dll.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 1536e73..c8f0caa 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2004-10-24 Danny Smith <dannysmith@users.sourceforge.net> + + * pe-dll.c (process_def_file): Don't export all symbols by default if + building a position-independent executable. + 2004-10-21 H.J. Lu <hongjiu.lu@intel.com> PR 463 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. */ |