From patchwork Tue Jan 17 15:41:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 44718 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1826918wrn; Tue, 17 Jan 2023 07:41:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXvlPKBl6SAb/rhA1GnAdKTMl3JgDhVKlOE40Yxi3nboqnfasPmLifbn/qVCiC5rSuEoRWpT X-Received: by 2002:a05:6402:2054:b0:496:b479:e437 with SMTP id bc20-20020a056402205400b00496b479e437mr3468559edb.27.1673970104295; Tue, 17 Jan 2023 07:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673970104; cv=none; d=google.com; s=arc-20160816; b=jDQU5Aw3ghdjNNaH7FBmdbsRxI31ACG0tU+KA/kEVMXZW3Cst+PEvA9EheQ0W8vLy3 QQAeD95OdrYO6RUrLzkDr5OjbE0ezP2V4ya7tnEIFV+7XT+dx5A3Ff9WS59ANTO40TZp WXrvi2YcNCGHkffg3FH4IwzaSHCLIVfkTAvXgNsw3bBRjuhiXwKk/a+E3ldUv4mvmbqV DhYHtM2ngnlUKnuQXy2q47y2DOgl9aP4sUGCehyR05I28ohkLYT4XQEGuk+9YmtqpK+Q u3GSGOsDg6zIHYeG15r1z0klS0i7VM/kQk2qjL/oIzYxVm1YuPvZ4Fz+zzieaG2QY+pR tI2A== 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:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=DPw34zan2WNboyPiSXeWxia+2oy3FHhnTXsr6f9ea8c=; b=MrCmt8GkI4TnoAnJ7daJrKrhkDhn2tkyeObnA2UsBxlzkjp28k4hF63aocJ2I1I6Vb lDzKb24ldcXJV9DWkHGNvJW0bxk40PAqUtq+bUlbeMxdeuQdnYX6S4J+TmQN4O7Fuh/E 1zKnHAdhjKnZ+t+COpvofANrPuThiovMrSFXCvM5M7NPc31S2O5sJeqn22n+YCs+i1+T foTrFb4y9r5xolnFUssb4GM1gaf+nJk2WP2ubW5JN8x8BJvCumx1YAUskLTotL0tTH00 rAfq+2wr216aZuBgjSeJ+43to1nHs9jh8fhTXWqXFBzh+w1gqqcRRYY2M35KFOL+qh4w Fwbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=EFPaCcPR; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id cx19-20020a05640222b300b00494cb3beb5bsi32353332edb.180.2023.01.17.07.41.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 07:41:44 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=EFPaCcPR; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 181CE3858C62 for ; Tue, 17 Jan 2023 15:41:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 181CE3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673970103; bh=DPw34zan2WNboyPiSXeWxia+2oy3FHhnTXsr6f9ea8c=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=EFPaCcPR7mEzbpmAVUt+vkpa+BIysFw5RmLX1oLN4nK9KT9RBpDHIETLnMTlo5lWg U6GPr7Qd6td/U5ylpzRldeH0HO8cyADZBq2mfW7UpKzePEvEk5c+Tr1D6H+YVyM/+A vW8vaUc8pS3CPnOJrVap5wunGr71anAsgavmzN9A= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by sourceware.org (Postfix) with ESMTPS id 74FDD3858C52 for ; Tue, 17 Jan 2023 15:41:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 74FDD3858C52 Received: by mail-pj1-x1035.google.com with SMTP id d8so1602729pjc.3 for ; Tue, 17 Jan 2023 07:41:31 -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:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DPw34zan2WNboyPiSXeWxia+2oy3FHhnTXsr6f9ea8c=; b=becRbK7bH1Hw5h44vuZ1ldTxwA5VRgenWfQT+kE45GOXOwdhL1Si+sVbB+lIZDqTk4 bIQa6raYyX1ZxQbn3QCDv9YS1ZiRfnqKaQYWk7fwe1rmypfmk6X6ipghMgeGxMRoSp9g Z8BIblAFYwbTYbzcQxDwFIYN9hVp+hu6PMeLajp4buuLVx8fTZcCfJeUrbegYE9uEekY NGkkEr1EMdjCNn1QCHXMhkYHWSEZtPtqCCwYpVhAXqJhR8HfOnet95LIjmOlo9C2E/mF QrqYYy/PoX+0WEdl3UGRujnlpZxbvuNdVo86f1eIGgEp4/akah5eH3M+xlsmflLkRTmU XUJQ== X-Gm-Message-State: AFqh2kpDz5VJcvh3eMnH7A3wd4ieaSjSLusKLcTgTz9MONGFLuBU3GIf lKtr4QWmkedhuj3jmatrCDP3DGtubPQ= X-Received: by 2002:a05:6a21:3284:b0:b8:7e6d:5b6a with SMTP id yt4-20020a056a21328400b000b87e6d5b6amr4171573pzb.49.1673970090232; Tue, 17 Jan 2023 07:41:30 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.56.30.47]) by smtp.gmail.com with ESMTPSA id 16-20020a631650000000b004785a63b44bsm17285960pgw.43.2023.01.17.07.41.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 07:41:28 -0800 (PST) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id E7C02740144 for ; Tue, 17 Jan 2023 07:41:25 -0800 (PST) To: binutils@sourceware.org Subject: [PATCH] ld: Use run_cc_link_tests for PR ld/26391 tests Date: Tue, 17 Jan 2023 07:41:25 -0800 Message-Id: <20230117154125.601189-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3025.7 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "H.J. Lu via Binutils" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755284875945645755?= X-GMAIL-MSGID: =?utf-8?q?1755284875945645755?= Use run_cc_link_tests for PR ld/26391 tests to compile PR ld/26391 tests in C. PR ld/30002 * testsuite/ld-elf/elf.exp: Use run_cc_link_tests for PR ld/26391 tests. --- ld/testsuite/ld-elf/elf.exp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index a3a8994749d..1fc77183a90 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -516,31 +516,24 @@ run_cc_link_tests [list \ {{nm "" pr26391.nd}} \ "pr26391-4" \ ] \ -] - -run_ld_link_tests [list \ [list \ "Build pr26391-5.o" \ - "-z unique-symbol -r" \ - "" \ - "" \ + "-Wl,-z,unique-symbol -r -nostdlib -nostartfiles" \ + "-fno-function-sections" \ {pr26391a.c pr26391b.c pr26391c.c pr26391d.c} \ [list \ [list "nm" "$dep_plug_opt" "pr26391.nd"] \ [list "nm" "$dep_plug_opt" "pr26391.fd"] \ ] \ "pr26391-5.o" \ - "-fno-function-sections" \ ] \ [list \ "Build pr26391-6.o" \ - "-z unique-symbol -r" \ - "" \ - "" \ + "-Wl,-z,unique-symbol -r -nostdlib -nostartfiles" \ + "-ffunction-sections" \ {pr26391a.c pr26391b.c pr26391c.c pr26391d.c} \ {{nm "" pr26391.nd}} \ "pr26391-6.o" \ - "-ffunction-sections" \ ] \ ]