ld: Use run_host_cmd_yesno in indirect.exp instead of catch exec
authorYunQiang Su <yunqiang.su@cipunited.com>
Fri, 30 Jun 2023 06:07:57 +0000 (14:07 +0800)
committerYunQiang Su <yunqiang.su@cipunited.com>
Thu, 6 Jul 2023 01:04:53 +0000 (09:04 +0800)
commit0f5cb49f68ae1be4b9702e71c3a9b80ee46b310a
tree4605aa0fd3412a675aa0bbef93f671ab1ad2982a
parent96a73f2cb2a1b4c47e49ff194a94f7394308956b
ld: Use run_host_cmd_yesno in indirect.exp instead of catch exec

Catch "exec $CC_FOR_TARGET" won't use the gas/ld that we just build,
and in fact run_host_cmd_yesno is a better choice for it.

ld/ChangeLog:

* testsuite/ld-elf/indirect.exp: use run_host_cmd_yesno
instead of handwrite catch exec $CC_FOR_TARGET.
ld/testsuite/ld-elf/indirect.exp