]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
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)
committerAlan Modra <amodra@gmail.com>
Wed, 12 Jul 2023 00:49:49 +0000 (10:19 +0930)
commit87a2d87ac3a0faa281da2c3436fe351002640fb0
tree4d1d67b82c8c74cbad2fa05824f5695253e959dc
parent74e20e445b358c2f6884ab29cd832561a178e646
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 {{}}.

(cherry picked from commit 96a73f2cb2a1b4c47e49ff194a94f7394308956b)
ld/testsuite/ld-elf/indirect.exp