From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1035.google.com with SMTP id d8so1602729pjc.3 for ; Tue, 17 Jan 2023 07:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=DPw34zan2WNboyPiSXeWxia+2oy3FHhnTXsr6f9ea8c=; b=TL70t9ktEYFe5zwKpM878QH2WpbBJHK3jfnJdNUiWRZxzcAAaKT0RifX0InjDV0iuc hr47z+RCoBcxV+aBFNYAJnEXZ1XU5aW5dylgFkbTW70leb7ItPXQi7tpxiQbru4A8BX0 uhOjAAsj1lJZVXmKQk+WBSyV7MypR1KnDr2oZFgqEAOzwf9/+0C4cyzAZ4DAl9PiDMyF xCcrBZDKn++4DcfWBuWpjrpmaVZNMs+PkC96PcaBBfCq7WHfv6tiQ6xLtw0Kpwpb1BPZ 8yUimfoRoMRfZvPG5Mnk0XEkW1RStukenqJxRxu4F6xUYTEtMyBgQMnP/ffyJZqWqpyX +R3A== 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-Google-Smtp-Source: AMrXdXv/VLs3ChauymNbRwBqdrT9OwXdBc/v67RUgolSCubfZ6vEiqZhQs0EgkYVPefh9tAV0txW0Q== 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) From: "H.J. Lu" 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 Content-Transfer-Encoding: 8bit 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 List-Id: 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" \ ] \ ] -- 2.39.0