aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/config/default.exp
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-02-05 17:35:09 +1030
committerAlan Modra <amodra@gmail.com>2022-02-05 17:37:19 +1030
commitcd8adbf3017272877c7e196e2e326f888f207bd9 (patch)
tree2ceb025c769c673fc775dfc4b1284f8ed8ca5b74 /ld/testsuite/config/default.exp
parent8df52eeeb06efcccd6b840689ad8e11ebb264e7f (diff)
downloadgdb-cd8adbf3017272877c7e196e2e326f888f207bd9.zip
gdb-cd8adbf3017272877c7e196e2e326f888f207bd9.tar.gz
gdb-cd8adbf3017272877c7e196e2e326f888f207bd9.tar.bz2
Enable "size" as a dumpprog in ld
binutils/ * testsuite/lib/binutils-common.exp (run_dump_test): Reference global SIZE and SIZEFLAGS. ld/ * testsuite/config/default.exp: Define SIZE and SIZEFLAGS.
Diffstat (limited to 'ld/testsuite/config/default.exp')
-rw-r--r--ld/testsuite/config/default.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index 2c3cec6..103b426 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -301,6 +301,14 @@ if ![info exists READELFFLAGS] then {
set READELFFLAGS {}
}
+if ![info exists SIZE] then {
+ set SIZE [findfile $base_dir/../binutils/size]
+}
+
+if ![info exists SIZEFLAGS] then {
+ set SIZEFLAGS ""
+}
+
if ![info exists ELFEDIT] then {
set ELFEDIT [findfile $base_dir/../binutils/elfedit]
}