+2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ PR ld/6744
+ * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
+ * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
+ warning if --export-dynamic was passed on command-line.
+ * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
+
2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
* emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
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,
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"));
}
/* pep-dll.c directly accesses pep_data_import_dll,
be added to the dynamic symbol table if the output format supports it.
See the description of @samp{--dynamic-list}.
+Note that this option is specific to ELF targeted ports. PE targets
+support a similar function to export all symbols from a DLL or EXE; see
+the description of @samp{--export-all-symbols} below.
+
@ifclear SingleFormat
@cindex big-endian objects
@cindex endianness
+2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ PR ld/6744
+ * ld-pe/export_dynamic_warning.d: New test control file.
+ * ld-pe/export_dynamic_warning.s: New test source file.
+ * ld-pe/pe.exp: Also run export_dynamic_warning dump test.
+
2009-04-02 Christophe Lyon <christophe.lyon@st.com>
* ld-arm/farcall-thumb-thumb-pic-veneer.d: Update expected
--- /dev/null
+#name: PE-COFF --export-dynamic warning
+#target: *-*-mingw32 *-*-cygwin *-*-pe
+#ld: --export-dynamic
+#warning: warning: --export-dynamic is not supported for PE targets, did you mean --export-all-symbols?
+
--- /dev/null
+
+_start:
+ xor %eax,%eax
+ ret
+
run_ld_link_tests $pe_tests\r
\r
run_dump_test "image_size"\r
+run_dump_test "export_dynamic_warning"\r