diff options
author | Dave Korn <dave.korn@artimi.com> | 2009-04-02 14:42:41 +0000 |
---|---|---|
committer | Dave Korn <dave.korn@artimi.com> | 2009-04-02 14:42:41 +0000 |
commit | 8b747e1a27742bcf9075999a49cf6ed7408e0a31 (patch) | |
tree | ff996e8a2e910f0d6c5a057fca285d3b86d2462d /ld/emultempl/pe.em | |
parent | d3626fb08bd9456f3252ed95d31f67f83c833cfd (diff) | |
download | binutils-gdb-8b747e1a27742bcf9075999a49cf6ed7408e0a31.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/pe.em')
-rw-r--r-- | ld/emultempl/pe.em | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 04d72295249..2bfd5faf733 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, |