diff options
author | Alan Modra <amodra@gmail.com> | 2010-11-16 23:00:48 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-11-16 23:00:48 +0000 |
commit | 283c0b82c3984feef0755726647225010ce09305 (patch) | |
tree | 878e39ceb6e5b2810291b5a43e19865718a1e0e2 | |
parent | 271a463e7a9fa65bcbdc21fc76df8b08549ac328 (diff) | |
download | gdb-283c0b82c3984feef0755726647225010ce09305.zip gdb-283c0b82c3984feef0755726647225010ce09305.tar.gz gdb-283c0b82c3984feef0755726647225010ce09305.tar.bz2 |
* ld-plugin/plugin.exp: Define printf and puts as main.
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-plugin/plugin.exp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 62f51d6..37d2f30 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-11-17 Alan Modra <amodra@gmail.com> + + * ld-plugin/plugin.exp: Define printf and puts as main. + 2010-11-08 Thomas Schwinge <thomas@schwinge.name> * lib/ld-lib.exp (is_elf_format): Consider for *-*-gnu*, too. diff --git a/ld/testsuite/ld-plugin/plugin.exp b/ld/testsuite/ld-plugin/plugin.exp index 3b5e077..8952f1d 100644 --- a/ld/testsuite/ld-plugin/plugin.exp +++ b/ld/testsuite/ld-plugin/plugin.exp @@ -87,7 +87,7 @@ 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 libs "[ld_simple_link_defsyms] --defsym ${_}printf=${_}main --defsym ${_}puts=${_}main" set plugin_tests [list \ [list "load plugin" "-plugin $plugin_path \ |