From patchwork Tue Jan 31 04:50:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 50594 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2558913wrn; Mon, 30 Jan 2023 20:50:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXuxTtKvlHDPXdwO2jymaSBAhZzV70vmSG1AQOa+P+R/ew+dotG84Tj3kJoY/WcRhlj27arm X-Received: by 2002:a05:6402:4284:b0:499:b672:ee30 with SMTP id g4-20020a056402428400b00499b672ee30mr66098762edc.11.1675140617989; Mon, 30 Jan 2023 20:50:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675140617; cv=none; d=google.com; s=arc-20160816; b=R8NKhYrIpTI6KHz1UwBbTwoKQvFk6Om+UHFEgvlYV1/I/utQiwaxeYvaYpHw/PGz58 fXiSRvQmYM22nqVFtgX5VWqGwadaNPvqmS1dCYQuVyU7h8qvS0C0TyzplBvHhlxVAhAJ enbkWF2Lej+uEGo+dOvfYt56/wNvOGhEKJHeBubN4182ROy4eDFDiRJ0YNKt02CzH4ft 2UCkYjOhI3Vr5X9gADUMjzVwmVbfbeGDWs0BKR+zx1wVSbJ9cp/Js/4cTh+tUPWvQAzk 5dMC4P91hgWJNfuvdomDh3T3KhssQI5aQm71onnMZ055m3IQtKCUWb4tSWXj9InT0jtM fysw== 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-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Mity1HpTKIuCBAhukhTnD7UeyZuwLOdgQBt0cpPI4cM=; b=dCVFl3dMFQVaYxCOuWMDX6pDIoparNDO09BYv0N9FcygrSnQ21eIDiQ2etRRsnUdOn A05o+I6o1MMLMyJlMDOfccxn+ABdWwT7SQSDuiqgjo6vswr7e0axIPENarRLN3JVR53D uMpZmIs0qm08+NtuD1gxYpVWdXj1a5TbM96DHionG4EJ1scpiWzQETTo8tJ+I1lfq2OU eC+MsIF4nlGFMyqXNrssU5d4wtJ7q68UAbYAdhFBF0Gv3yq9+W0pjtlECCpJK8NOGrfR dIQ4FMD46vyTssZ68aouhomJGITezgptWj4JNP+cL9ae2P61AMX1+skRzpWQRvaSU/ug h1Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=xf7HGKQl; 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 fg9-20020a056402548900b0049e267d9398si16897570edb.327.2023.01.30.20.50.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 20:50:17 -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=xf7HGKQl; 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 C06DF3858C20 for ; Tue, 31 Jan 2023 04:50:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C06DF3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675140616; bh=Mity1HpTKIuCBAhukhTnD7UeyZuwLOdgQBt0cpPI4cM=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=xf7HGKQle1DAmGFYNefFB1EvTy0YJTRWQN/0w1mPzR9PZNrHddSUun24CutNIGyAN uhEzNINtrKcbOoOyVCcUC8HOq6AYYCeuwEsYZ8vJ4DI5Y2xFtM5rMKw50IPkn6Efc5 agjrLQiAcUCM1DwqbUr4PEyQusjOgZwhSy7DppZw= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 7A1643858D1E for ; Tue, 31 Jan 2023 04:50:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A1643858D1E Received: by mail-pl1-x630.google.com with SMTP id be8so13884955plb.7 for ; Mon, 30 Jan 2023 20:50:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Mity1HpTKIuCBAhukhTnD7UeyZuwLOdgQBt0cpPI4cM=; b=KNYi68BC7+bPtgx3GWXwR0U4/kNvyeUM5JmHqxBSmC91XlXm3JYuTQvvYa1663fiyD CLGeg8bgUMVy91xFpnIandSU/43FwJ0VgVEdhKXu8rrNA4Ae5fgBeqqjOzwuB690M+KP jR/NroCAyNsUFhJvMPGB8ZOJTCQzviBeP8rEJboOj+adV5aPFZBgdG7q2n/6WtyjojX7 oMbt3yPcnlC2LFBFVDdo+V/ogn28v6LBfqtbhdyBPwa7Urla3gvugC/r91nXdlhKKaLs 4dFsZMu1PNy4SulYZO9N7HWx8H1a3ZEy/0HSLo9ksCYQUY9Zy4QXrgM7nvrFrUQtu5ji dVHg== X-Gm-Message-State: AFqh2kqxhEl6d7NdhIo8QyAtq60i921y12X7JeHxWWYXs+jtMAypgCKJ WPAS8kKOyrlpqpaLdZoBK7eAsNBU3Jc= X-Received: by 2002:a17:902:b697:b0:194:a60a:2900 with SMTP id c23-20020a170902b69700b00194a60a2900mr46753049pls.6.1675140606219; Mon, 30 Jan 2023 20:50:06 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:83fe:90aa:98ff:94d7]) by smtp.gmail.com with ESMTPSA id a1-20020a170902ecc100b001948720f6bdsm8612614plh.98.2023.01.30.20.50.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 20:50:05 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 9C6111142E01; Tue, 31 Jan 2023 15:20:03 +1030 (ACDT) Date: Tue, 31 Jan 2023 15:20:03 +1030 To: binutils@sourceware.org Subject: testsuite XPASSes Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3035.1 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: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra 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?1756512248683058998?= X-GMAIL-MSGID: =?utf-8?q?1756512248683058998?= This adjusts the testsuite to get rid of a number of XPASSes that have appeared. Someone might like to look into a better patch for the s390 change. aarch64-pe XPASS: weak symbols arm-nacl XPASS: rgn-over8 mcore-pe XPASS: ld-scripts/provide-8 mips64-linux-gnuabi64 XPASS: vers4 mips64-linux-gnuabi64 XPASS: vers4b mips-linux-gnu XPASS: vers4 mips-linux-gnu XPASS: vers4b s390-linux-gnu XPASS: undefined line sh4-linux-gnu XPASS: --gc-sections with __start_SECTIONNAME sh-coff XPASS: objcopy object (simple copy) sh-coff XPASS: objcopy executable (pr25662) binutils/ * testsuite/binutils-all/objcopy.exp: Don't xfail "simple copy" and "pr25662" on sh-*-coff. Remove all non-ELF xfails on "ELF unknown section type" test. ld/ * testsuite/ld-elfvers/vers.exp (vers4, vers4b): Don't xfail all mips, just xfail mips irix. * testsuite/ld-gc/pr19161.d: Don't xfail sh. * testsuite/ld-scripts/rgn-over8-ok.d: Don't xfail nacl. * testsuite/ld-scripts/weak.exp: Don't xfail aarch64-pe. * testsuite/ld-undefined/undefined.exp: Conditionally xfail "undefined line" depending on gcc version for s390. diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index 77af5ba84ba..361e430f119 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -127,7 +127,6 @@ proc objcopy_test {testname srcfile type asflags ldflags} { } setup_xfail "hppa*-*-*" -setup_xfail "sh-*-coff*" setup_xfail "tic54x-*-*" clear_xfail "hppa*64*-*-hpux*" "hppa*-*-linux*" "hppa*-*-lites*" clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-*elf*" @@ -1215,14 +1214,7 @@ set elf64 "" if [is_elf_format] { objcopy_test_symbol_manipulation objcopy_test_elf_common_symbols - - setup_xfail "hppa*-*-*" - setup_xfail "sh-*-coff*" - setup_xfail "tic54x-*-*" - clear_xfail "hppa*64*-*-hpux*" "hppa*-*-linux*" "hppa*-*-lites*" - clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-*elf*" objcopy_test "ELF unknown section type" unknown.s object "" "" - objcopy_test_readelf "ELF group 1" group.s objcopy_test_readelf "ELF group 2" group-2.s objcopy_test_readelf "ELF group 3" group-3.s @@ -1461,7 +1453,6 @@ run_dump_test "pr23633" run_dump_test "set-section-alignment" setup_xfail "hppa*-*-*" -setup_xfail "sh-*-coff*" setup_xfail "spu-*-*" clear_xfail "hppa*64*-*-hpux*" "hppa*-*-linux*" "hppa*-*-lites*" clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-*elf*" diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index 236ebbce7bc..b266cc0226f 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -801,13 +801,13 @@ build_exec "vers3" vers3.c vers3 "-Wl,--no-as-needed" vers1.so vers3.ver vers3.d # This test fails on MIPS. On the MIPS we must put foo in the dynamic # symbol table, which the test does not expect. -setup_xfail "mips*-*-*" +setup_xfail "mips*-*-irix*" build_exec "vers4" vers4.c vers4 "" "" "" "" vers4.sym build_exec "vers4a" vers4.c vers4a "-Wl,-export-dynamic" "" vers4a.ver vers4a.dsym vers4a.sym # Verify that --no-export-dynamic undoes the effect of --export-dynamic. -setup_xfail "mips*-*-*" +setup_xfail "mips*-*-irix*" build_exec "vers4b" vers4.c vers4b "-Wl,-export-dynamic -Wl,--no-export-dynamic" "" "" "" vers4.sym diff --git a/ld/testsuite/ld-gc/pr19161.d b/ld/testsuite/ld-gc/pr19161.d index 474cbd4b1b4..75069649633 100644 --- a/ld/testsuite/ld-gc/pr19161.d +++ b/ld/testsuite/ld-gc/pr19161.d @@ -3,7 +3,7 @@ #ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o #nm: --format=bsd #xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* -#xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-* +#xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* #... 0*[1-9a-f]+[0-9a-f]*[ ](d|D)[ ]_*__start_my_section diff --git a/ld/testsuite/ld-scripts/rgn-over8-ok.d b/ld/testsuite/ld-scripts/rgn-over8-ok.d index fe6b1c9c21f..300e94788ab 100644 --- a/ld/testsuite/ld-scripts/rgn-over8-ok.d +++ b/ld/testsuite/ld-scripts/rgn-over8-ok.d @@ -2,13 +2,9 @@ # source: rgn-over8.s # ld: -T rgn-over8.t # objdump: -w -h -# xfail: rx-*-* *-*-nacl* +# xfail: rx-*-* # FAILS on the RX because the linker has to set LMA == VMA for the # Renesas loader. -# FAILs on NaCl targets because the linker extends the first segment -# to fill out the page, making its p_vaddr+p_memsz cover the sh_addr -# of .bss too, which makes BFD compute its LMA from the p_paddr of the -# text segment. .*: file format .* diff --git a/ld/testsuite/ld-scripts/weak.exp b/ld/testsuite/ld-scripts/weak.exp index 9df57c7d97f..654cf716164 100644 --- a/ld/testsuite/ld-scripts/weak.exp +++ b/ld/testsuite/ld-scripts/weak.exp @@ -28,7 +28,8 @@ if { [is_elf_format] } { setup_xfail hppa64-*-* } elseif { [is_pecoff_format] } { # Weak symbols are broken for most PE targets. - if { ![istarget i?86-*-*] + if { ![istarget aarch64-*-*] + && ![istarget i?86-*-*] && ![istarget sh-*-*] && ![istarget x86_64-*-*] } { setup_xfail *-*-* diff --git a/ld/testsuite/ld-undefined/undefined.exp b/ld/testsuite/ld-undefined/undefined.exp index 0d76c9e2593..69a8f9bf6a9 100644 --- a/ld/testsuite/ld-undefined/undefined.exp +++ b/ld/testsuite/ld-undefined/undefined.exp @@ -141,7 +141,12 @@ if { ![check_compiler_available] } { # error message is 8 instead of 9. On 64 bit s/390 this works # because of the new brasl instruction that doesn't need a literal # pool entry. - setup_xfail s390-*-* + # FIXME: this test has been an XPASS since 2021-04 (and maybe + # earlier, that's just where my logs went back to). Testing the + # gcc version is a wild guess at what might have changed. + if ![at_least_gcc_version 11 0] { + setup_xfail s390-*-* + } # See comments above for Xtensa. setup_xfail xtensa*-*-linux*