ld/ChangeLog
[deliverable/binutils-gdb.git] / ld / emultempl / pe.em
index 04d722952491b8da951501fa6e55fee593020e05..2bfd5faf733e5c4aa0f37ddc059210a08db67655 100644 (file)
@@ -887,6 +887,12 @@ gld_${EMULATION_NAME}_after_parse (void)
 
   if (! link_info.relocatable && entry_symbol.name != NULL)
     ldlang_add_undef (entry_symbol.name);
+
+  /* PR ld/6744:  Warn the user if they have used an ELF-only
+     option hoping it will work on PE.  */
+  if (link_info.export_dynamic)
+    einfo (_("%P: warning: --export-dynamic is not supported for PE "
+      "targets, did you mean --export-all-symbols?\n"));
 }
 
 /* pe-dll.c directly accesses pe_data_import_dll,
This page took 0.023671 seconds and 4 git commands to generate.