summaryrefslogtreecommitdiff
path: root/ld/testsuite
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:41:52 +1030
commite496d83bf299520ca487aeb97884bd1106c79658 (patch)
treeeec530da870739c020734867f88d48c3f96cf8ac /ld/testsuite
parent8fd6b8a0d26ee82759f4f7c491c638d8021292a2 (diff)
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. (cherry picked from commit cd8adbf3017272877c7e196e2e326f888f207bd9)
Diffstat (limited to 'ld/testsuite')
-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 2c3cec6843..103b426bbd 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]
}