aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
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
commit8b747e1a27742bcf9075999a49cf6ed7408e0a31 (patch)
treeff996e8a2e910f0d6c5a057fca285d3b86d2462d /ld/emultempl
parentd3626fb08bd9456f3252ed95d31f67f83c833cfd (diff)
downloadgdb-8b747e1a27742bcf9075999a49cf6ed7408e0a31.zip
gdb-8b747e1a27742bcf9075999a49cf6ed7408e0a31.tar.gz
gdb-8b747e1a27742bcf9075999a49cf6ed7408e0a31.tar.bz2
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')
-rw-r--r--ld/emultempl/pe.em6
-rw-r--r--ld/emultempl/pep.em6
2 files changed, 12 insertions, 0 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index 04d7229..2bfd5fa 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -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,
diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em
index ee4eeeb..9c79e5a 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,