aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-07-22 10:41:33 +0930
committerAlan Modra <amodra@gmail.com>2022-07-22 10:43:29 +0930
commitb5375c5da917828f801dff29e817895910f87536 (patch)
tree2fadc8d851c272eeca3deecae03e7efc17d42d1a /binutils/testsuite/binutils-all
parent13391ff8bcdbb29421528cad6d5763b31c8d9b26 (diff)
downloadgdb-b5375c5da917828f801dff29e817895910f87536.zip
gdb-b5375c5da917828f801dff29e817895910f87536.tar.gz
gdb-b5375c5da917828f801dff29e817895910f87536.tar.bz2
PR15951, binutils testsuite builds status wrapper unconditionally
PR 15951 * testsuite/binutils-all/objcopy.exp: Build testglue.o when needs_status_wrapper.
Diffstat (limited to 'binutils/testsuite/binutils-all')
-rw-r--r--binutils/testsuite/binutils-all/objcopy.exp7
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index 9a5dad5..5871d43 100644
--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -641,7 +641,12 @@ proc copy_setup { } {
global test_prog
global host_triplet
- set res [build_wrapper testglue.o]
+ if {[target_info exists needs_status_wrapper] && \
+ [target_info needs_status_wrapper] != "0"} {
+ set res [build_wrapper testglue.o]
+ } else {
+ set res ""
+ }
set flags { debug }
if { [istarget *-*-uclinux*] && ![istarget tic6x-*-*] && ![istarget arm*-*-uclinuxfdpiceabi] } {