ld: Use [list ] syntax to define run_tests in indirect.exp
authorYunQiang Su <yunqiang.su@cipunited.com>
Fri, 30 Jun 2023 05:14:51 +0000 (13:14 +0800)
committerYunQiang Su <yunqiang.su@cipunited.com>
Thu, 6 Jul 2023 01:04:23 +0000 (09:04 +0800)
commit96a73f2cb2a1b4c47e49ff194a94f7394308956b
tree08d79cecb2478669b30fabc92980c590a5f8bf3e
parent9c72c3349db908daa1e2f155afdfe942dc779ecb
ld: Use [list ] syntax to define run_tests in indirect.exp

Currently, the var run_tests is defined by syntax {{}},
while in this case, variables cannot be used.
Thus $NOPIE_CFLAGS and $NOPIE_LDFLAGS are passed to cmd as names
instead of values:
  gcc ... $NOPIE_CFLAGS -c .../indirect5a.c -o tmpdir/indirect5a.o

Let's use [list [list ]] syntax instead.

ld/ChangeLog:

* testsuite/ld-elf/indirect.exp(run_tests): use [list [list]]
syntax instead of {{}}.
ld/testsuite/ld-elf/indirect.exp