PR15951, binutils testsuite builds status wrapper unconditionally

PR 15951
	* testsuite/binutils-all/objcopy.exp: Build testglue.o when
	needs_status_wrapper.
This commit is contained in:
Alan Modra
2022-07-22 10:41:33 +09:30
parent 13391ff8bc
commit b5375c5da9

View File

@ -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] } {