2004-12-14 Randolph Chung <tausq@debian.org>
[deliverable/binutils-gdb.git] / ld / pe-dll.c
index 0d0ecda87db72da523a49660ab4401a40a123f4d..46b0a1381f594c6d984755ef254db4b4b168bc5e 100644 (file)
@@ -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.  */
@@ -2665,7 +2665,7 @@ pe_dll_fill_sections (bfd *abfd, struct bfd_link_info *info)
 
   fill_edata (abfd, info);
 
-  if (info->shared)
+  if (info->shared && !info->pie)
     pe_data (abfd)->dll = 1;
 
   edata_s->contents = edata_d;
This page took 0.027606 seconds and 4 git commands to generate.