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/testsuite | |
parent | d3626fb08bd9456f3252ed95d31f67f83c833cfd (diff) | |
download | gdb-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/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-pe/export_dynamic_warning.d | 5 | ||||
-rwxr-xr-x | ld/testsuite/ld-pe/export_dynamic_warning.s | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-pe/pe.exp | 1 |
4 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 60ed315..7290e1b 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +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 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"
|