summaryrefslogtreecommitdiff
path: root/ld/emultempl/pep.em
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2009-04-02 14:42:41 +0000
committerDave Korn <dave.korn@artimi.com>2009-04-02 14:42:41 +0000
commitfc3aa121beae057d94418392e560f6e5eb50ea45 (patch)
treecc2262f807e4b7f812b2edcec43edeeb3e64014e /ld/emultempl/pep.em
parentc50a03a5d0f06035cdb8bc9df2b12033e650307a (diff)
downloadbinutils-redhat-fc3aa121beae057d94418392e560f6e5eb50ea45.tar.gz
ld/ChangeLog
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. ld/testsuite/ChangeLog 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.
Diffstat (limited to 'ld/emultempl/pep.em')
-rw-r--r--ld/emultempl/pep.em6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em
index ee4eeeb744..9c79e5acfd 100644
--- a/ld/emultempl/pep.em
+++ b/ld/emultempl/pep.em
@@ -824,6 +824,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"));
}
/* pep-dll.c directly accesses pep_data_import_dll,