bfd, include, ld, binutils, libctf: CTF should use the dynstr/sym
[binutils-gdb.git] / ld / emultempl / pep.em
index f161cce2b5f16a5162c48544ff709cba94510d40..74468be0ccb5743af47ea9b26bd85aed38f67a91 100644 (file)
@@ -537,7 +537,7 @@ set_entry_point (void)
   /* Entry point name for arbitrary subsystem numbers.  */
   static const char default_entry[] = "mainCRTStartup";
 
-  if (bfd_link_pic (&link_info) || dll)
+  if (bfd_link_dll (&link_info) || dll)
     {
       entry = "DllMainCRTStartup";
     }
@@ -1824,7 +1824,8 @@ gld_${EMULATION_NAME}_finish (void)
     {
       pep_dll_fill_sections (link_info.output_bfd, &link_info);
       if (command_line.out_implib_filename
-          && pep_def_file->num_exports != 0)
+          && (pep_def_file->num_exports != 0
+              || bfd_link_pic (&link_info)))
        pep_dll_generate_implib (pep_def_file,
                                 command_line.out_implib_filename, &link_info);
     }
@@ -2234,7 +2235,8 @@ struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
   NULL,        /* new_vers_pattern.  */
   NULL,        /* extra_map_file_text */
   ${LDEMUL_EMIT_CTF_EARLY-NULL},
-  ${LDEMUL_EXAMINE_STRTAB_FOR_CTF-NULL},
+  ${LDEMUL_ACQUIRE_STRINGS_FOR_CTF-NULL},
+  ${LDEMUL_NEW_DYNSYM_FOR_CTF-NULL},
   ${LDEMUL_PRINT_SYMBOL-NULL}
 };
 EOF