Message ID | 20221109162611.760465-1-chigot@adacore.com |
---|---|
State | Accepted |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp431563wru; Wed, 9 Nov 2022 08:26:47 -0800 (PST) X-Google-Smtp-Source: AMsMyM6ecyzuNr7TwgSwOnft238UDZsJWGvq3DGq2GcxL9SZM3hleG9O6DUqG9d3mxzBFGSl+3sR X-Received: by 2002:a17:907:8e8d:b0:7ad:b45d:810c with SMTP id tx13-20020a1709078e8d00b007adb45d810cmr1353337ejc.181.1668011207621; Wed, 09 Nov 2022 08:26:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668011207; cv=none; d=google.com; s=arc-20160816; b=TQWCAKBn259+UNczEWZ2UgQcowQt5XgsPrNjigkiPVapv9tpkFic/lwQ2Ag2K4XRBO akHXc9iDaCA7rK5VhGUYKMDqRvLg45gVYjWK7llQCWNi9vHKH3bqUleZshW4coSiHsCZ Di50qYBw8qv4GxfxUo7OtXOcqG37lOy9/tMdJtorbbW9ksEafNA2cdF4jMs4jSev9RsC 9cEDArmBw6pwyth8uOPLy9iOCdaPdSnkyCFqmDkFcmAxaQry9SfTfAfo4uWqY3A+G6e9 bzAS/Ptv3WGJw54ouL0t+gUj/IK3vLuIZgf9nSsu5cQoXcuLsUL6/1bdOgvNWcHlUh9p Cqlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=0bHFjlSkKUm5bLZLFfJdd8g0crLgFwFJJiAFbLWJqrg=; b=M0y5SCi1x3t7fNVsCuOXoJhwOX/38dDBNNsgVwgExJkSMldUcjKEVm86Belb3frBL0 9VdetYRJCnl/MmncOr3ZGDkoB7BD70nFLkBAzJfb/s0m+W0J4KkhTAxMUKj15PEAbLdf UqWABa1n25o31u6jUlCdjk1Ud1jiSI5mDOEyKdCrViGBefnSSk3TB3PJGJWY6YPb8GBD rqYTykl9vfFohwngdqNsBh1TM4M/ELTVfXkHb+dFrLhFxzWUpjs9sDlWc5DjB/r9iQej +BLd0Sbl6K2QGWk3t4dQNCUbvRuBCWm0L9WOzzEDZMzFWlOWL+5tiP8MUOo9LQdoNLtW FTzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=KQdvx93g; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u13-20020a50950d000000b0043dc00e0740si14310882eda.373.2022.11.09.08.26.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 08:26:47 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=KQdvx93g; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 978CA38582AC for <ouuuleilei@gmail.com>; Wed, 9 Nov 2022 16:26:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 978CA38582AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668011206; bh=0bHFjlSkKUm5bLZLFfJdd8g0crLgFwFJJiAFbLWJqrg=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=KQdvx93gyI3GpJMZ1yQhvhwKwPerjwQaoYTuZJp5zZFm9c5l70uvFmgroSxo5VHqL MfHCSwoKeoUEXU986GKunVK5YDg4SellGHJByeZmsHh52d16Iiy7oHJ1HJNBb9BSAB EZ/7GVwDc4TJdmE29CFTAhvTVFlsl00oH381XxXg= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id BB19E3858D1E for <binutils@sourceware.org>; Wed, 9 Nov 2022 16:26:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BB19E3858D1E Received: by mail-wr1-x42a.google.com with SMTP id y16so26488420wrt.12 for <binutils@sourceware.org>; Wed, 09 Nov 2022 08:26:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0bHFjlSkKUm5bLZLFfJdd8g0crLgFwFJJiAFbLWJqrg=; b=OiOepKeZjTvR2ps0o60iDHHbiuH9I453V8+nbc0YXyW2+hiDX5gLrvctOlbbIuKpRO oqJYUPJAStLzHzuT3uZn8oDBxntG7DxK7rHzWY9Dzbc7vYyWV29r+GBOTodLUopcSJ6D 3pdXvDLkudZhFE2W8x7Q1NJf33QOX3+ZI6GmIAiL39lrNZcBYUbzheUUVqRkHA5zPlzl URM9ZEn5ijbIygVwh6JkaQqsBP7GRIExPON1TYrVqY7/T5JtBuXzlvTvOQcY97tn9EnK 3s+wtbfiMo8yU2fBjP6k+QELyI9xKf+ZCcP6DbEaX7EXwUwUXO/LJfQBeKBQOU/Mg59G Iwwg== X-Gm-Message-State: ACrzQf1RB/vDPU5RYdfDEBoMIJ1azM4LAY7ULL6Q5hwzJaNzuQShhDQI 0lpO9X5QhxdrDMThuHHIFQQrRb5nFnC04w== X-Received: by 2002:adf:ed4a:0:b0:236:aef1:9c75 with SMTP id u10-20020adfed4a000000b00236aef19c75mr38978629wro.258.1668011195897; Wed, 09 Nov 2022 08:26:35 -0800 (PST) Received: from chigot-Dell.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id p9-20020a05600c468900b003cf75213bb9sm2275761wmo.8.2022.11.09.08.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 08:26:35 -0800 (PST) To: binutils@sourceware.org Cc: =?utf-8?q?Cl=C3=A9ment_Chigot?= <chigot@adacore.com> Subject: [PATCH] ld/testsuite: skip ld-size when -shared is not supported Date: Wed, 9 Nov 2022 17:26:11 +0100 Message-Id: <20221109162611.760465-1-chigot@adacore.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: =?utf-8?q?Cl=C3=A9ment_Chigot_via_Binutils?= <binutils@sourceware.org> Reply-To: =?utf-8?q?Cl=C3=A9ment_Chigot?= <chigot@adacore.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749036520064009522?= X-GMAIL-MSGID: =?utf-8?q?1749036520064009522?= |
Series |
ld/testsuite: skip ld-size when -shared is not supported
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Clément Chigot
Nov. 9, 2022, 4:26 p.m. UTC
ld/ChangeLog: * testsuite/ld-size/size.exp: Skip when -shared is not supported. --- ld/testsuite/ld-size/size.exp | 6 ++++++ 1 file changed, 6 insertions(+)
Comments
On Wed, Nov 09, 2022 at 05:26:11PM +0100, Clément Chigot via Binutils wrote: > * testsuite/ld-size/size.exp: Skip when -shared is not > supported. What does this catch that isn't already covered by the target test?
On Wed, Nov 9, 2022 at 10:37 PM Alan Modra <amodra@gmail.com> wrote: > > On Wed, Nov 09, 2022 at 05:26:11PM +0100, Clément Chigot via Binutils wrote: > > * testsuite/ld-size/size.exp: Skip when -shared is not > > supported. > > What does this catch that isn't already covered by the target test? It does in a wide approach. But it doesn't allow custom targets (as I do) where shared support is explicitly disabled. It might not have a big impact but it looks logical to me to check for -shared (both linker and compiler by the way) before running any tests related to that. I've pushed other similar patches recently (see ld-arm or ld-shared). Thanks, Clément
On Thu, Nov 10, 2022 at 08:54:04AM +0100, Clément Chigot wrote: > On Wed, Nov 9, 2022 at 10:37 PM Alan Modra <amodra@gmail.com> wrote: > > > > On Wed, Nov 09, 2022 at 05:26:11PM +0100, Clément Chigot via Binutils wrote: > > > * testsuite/ld-size/size.exp: Skip when -shared is not > > > supported. > > > > What does this catch that isn't already covered by the target test? > > It does in a wide approach. But it doesn't allow custom targets (as I > do) where shared support is explicitly disabled. > It might not have a big impact but it looks logical to me to check for > -shared (both linker and compiler by the way) before running any tests > related to that. > I've pushed other similar patches recently (see ld-arm or ld-shared). OK, the patch is fine.
diff --git a/ld/testsuite/ld-size/size.exp b/ld/testsuite/ld-size/size.exp index e15962886cd..64793c00948 100644 --- a/ld/testsuite/ld-size/size.exp +++ b/ld/testsuite/ld-size/size.exp @@ -33,6 +33,12 @@ if {!(([istarget "i?86-*-*"] return } +# Skip when -shared is not supported +if { ![check_shared_lib_support] } { + verbose "Size relocation tests not run - shared support disabled" + return +} + # So as to avoid rewriting every last test case here in a nacl variant, # we use black magic to massage the generic cases into nacl-variant cases. if [istarget "*-*-nacl*"] {