From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id D69403858D28 for ; Sat, 5 Feb 2022 07:08:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D69403858D28 Received: by mail-pl1-x635.google.com with SMTP id h14so7038064plf.1 for ; Fri, 04 Feb 2022 23:08:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=iYO2MItPMrXHgSRqxUBtnCSyIYDKDAF63yWNeqUSGLs=; b=sPLzjxemOsvb3CdlARfwOJWR/w0lTvdKDOM4VlOJLfP0YklOpUOm207OLKFyfLHUnH s7BbWB8LD7ZbTrLylwLMSjfBYKOU0jMw2Aep2vZ2CXJTPuXKzCAtFjJvGwd1xLxIh+KS DFCd7SZjsGkdMsSe7XNapiyRnDz4gDWvuIDhCO1FqutPbE2zy+I+S4XMPT6B7VGF+6T0 wdCYzxXa9VbQU56Ni8o5pXlfpVrA4LLYCy68ZBFq1QcZ2GbbstcFYlpMMjcTAUoNbKsE ACGT6WAViQvEhf1r4elloZSEZnlFSLrCiVVAhgHtmZwdGvWiJorhO+zZcoJq0pSg8+Ag iZJg== X-Gm-Message-State: AOAM532M9pnut1W9hA1dfEfdgXD7plG2KXILCQpA84cRIjOS6/Jea5BR IwBRSgyIZsXZWgLfVHnstUF2+A9rQCw= X-Google-Smtp-Source: ABdhPJxUIpma00IcW3pcgGwTiHGV2aFSTd+IzS/xYkqsvMLwYu15nW3ym9zVXV1pG2EoHEI7khtGkg== X-Received: by 2002:a17:90a:f198:: with SMTP id bv24mr7412833pjb.32.1644044896575; Fri, 04 Feb 2022 23:08:16 -0800 (PST) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id l2sm4969841pfc.183.2022.02.04.23.08.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 23:08:15 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 7A7681140D6C; Sat, 5 Feb 2022 17:38:13 +1030 (ACDT) Date: Sat, 5 Feb 2022 17:38:13 +1030 From: Alan Modra To: binutils@sourceware.org Subject: Enable "size" as a dumpprog in ld Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3028.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, UNWANTED_LANGUAGE_BODY autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2022 07:08:19 -0000 binutils/ * testsuite/lib/binutils-common.exp (run_dump_test): Reference global SIZE and SIZEFLAGS. ld/ * testsuite/config/default.exp: Define SIZE and SIZEFLAGS. diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp index 2a2aaf4a17d..55b96980e05 100644 --- a/binutils/testsuite/lib/binutils-common.exp +++ b/binutils/testsuite/lib/binutils-common.exp @@ -866,6 +866,7 @@ proc run_dump_test { name {extra_options {}} } { global ADDR2LINE ADDR2LINEFLAGS AS ASFLAGS CC_FOR_TARGET CFLAGS_FOR_TARGET global ELFEDIT ELFEDITFLAGS LD LDFLAGS NM NMFLAGS OBJCOPY OBJCOPYFLAGS global OBJDUMP OBJDUMPFLAGS READELF READELFFLAGS STRIP STRIPFLAGS + global SIZE SIZEFLAGS global copyfile env runtests srcdir subdir verbose global DT_RELR_LDFLAGS NO_DT_RELR_LDFLAGS diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp index 2c3cec68434..103b426bbd8 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] } -- Alan Modra Australia Development Lab, IBM