From 8b747e1a27742bcf9075999a49cf6ed7408e0a31 Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Thu, 2 Apr 2009 14:42:41 +0000 Subject: 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. --- ld/testsuite/ld-pe/export_dynamic_warning.d | 5 +++++ ld/testsuite/ld-pe/export_dynamic_warning.s | 5 +++++ ld/testsuite/ld-pe/pe.exp | 1 + 3 files changed, 11 insertions(+) create mode 100644 ld/testsuite/ld-pe/export_dynamic_warning.d create mode 100755 ld/testsuite/ld-pe/export_dynamic_warning.s (limited to 'ld/testsuite/ld-pe') diff --git a/ld/testsuite/ld-pe/export_dynamic_warning.d b/ld/testsuite/ld-pe/export_dynamic_warning.d new file mode 100644 index 0000000..57cecb6 --- /dev/null +++ b/ld/testsuite/ld-pe/export_dynamic_warning.d @@ -0,0 +1,5 @@ +#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? + diff --git a/ld/testsuite/ld-pe/export_dynamic_warning.s b/ld/testsuite/ld-pe/export_dynamic_warning.s new file mode 100755 index 0000000..e221c36 --- /dev/null +++ b/ld/testsuite/ld-pe/export_dynamic_warning.s @@ -0,0 +1,5 @@ + +_start: + xor %eax,%eax + ret + diff --git a/ld/testsuite/ld-pe/pe.exp b/ld/testsuite/ld-pe/pe.exp index f489e89..2aa4d20 100644 --- a/ld/testsuite/ld-pe/pe.exp +++ b/ld/testsuite/ld-pe/pe.exp @@ -49,3 +49,4 @@ if {[istarget x86_64-*-mingw*] } { run_ld_link_tests $pe_tests run_dump_test "image_size" +run_dump_test "export_dynamic_warning" -- cgit v1.1