diff options
author | Dave Korn <dave.korn@artimi.com> | 2010-11-05 07:23:10 +0000 |
---|---|---|
committer | Dave Korn <dave.korn@artimi.com> | 2010-11-05 07:23:10 +0000 |
commit | 36fe835f75b5800bc29879bd4ff8eb8bc1896140 (patch) | |
tree | a5f6e97a596e90cd8feb9cfbe914d77d46cc1e8f /ld/testsuite/ld-plugin | |
parent | d44ad554d42dd9e80692b0fd2a48b950d6a7a38e (diff) | |
download | gdb-36fe835f75b5800bc29879bd4ff8eb8bc1896140.zip gdb-36fe835f75b5800bc29879bd4ff8eb8bc1896140.tar.gz gdb-36fe835f75b5800bc29879bd4ff8eb8bc1896140.tar.bz2 |
* ld-plugin/plugin.exp (testobjfiles): Dont use HOSTING_CRT0.
(testobjfiles_notext): Likewise.
(libs): Don't use HOSTING_LIBS; fill with default symbol defs instead.
* lib/ld-lib.exp (ld_simple_link_defsyms): Add cygming clause.
Diffstat (limited to 'ld/testsuite/ld-plugin')
-rw-r--r-- | ld/testsuite/ld-plugin/plugin.exp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ld/testsuite/ld-plugin/plugin.exp b/ld/testsuite/ld-plugin/plugin.exp index bb4f31c..3b5e077 100644 --- a/ld/testsuite/ld-plugin/plugin.exp +++ b/ld/testsuite/ld-plugin/plugin.exp @@ -53,10 +53,6 @@ set lt_objdir [regsub "objdir=" "$lt_objdir" ""] set plugin_path "$base_dir/$lt_objdir/$plugin_name" verbose "Full plugin path $plugin_path" 2 -set testobjfiles "$HOSTING_CRT0 tmpdir/main.o tmpdir/func.o tmpdir/text.o" -set testobjfiles_notext "$HOSTING_CRT0 tmpdir/main.o tmpdir/func.o" -set libs "$HOSTING_LIBS" - set regclm "-plugin-opt registerclaimfile" set regas "-plugin-opt registerallsymbolsread" set regcln "-plugin-opt registercleanup" @@ -87,6 +83,12 @@ if { $can_compile && !$failed_compile } { } } +set testobjfiles "tmpdir/main.o tmpdir/func.o tmpdir/text.o" +set testobjfiles_notext "tmpdir/main.o tmpdir/func.o" +# Rather than having libs we just define dummy values for anything +# we may need to link a target exe; we aren't going to run it anyway. +set libs "[ld_simple_link_defsyms] --defsym ${_}printf=0 --defsym ${_}puts=0" + set plugin_tests [list \ [list "load plugin" "-plugin $plugin_path \ $testobjfiles $libs" "" "" {{ld plugin-1.d}} "main.x" ] \ |