From patchwork Wed Jun 14 14:54:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 107999 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:640b:b0:12b:d5da:ddc2 with SMTP id f11csp1354087rwh; Wed, 14 Jun 2023 07:54:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5OgWSroeSPKUyEzD5mxoQMWCiwAOnE9yCzBdre2LyL1RHjowDzqTthc54aSCKxTcpo/pY8 X-Received: by 2002:a17:907:320b:b0:96a:3e7:b592 with SMTP id xg11-20020a170907320b00b0096a03e7b592mr13376738ejb.25.1686754465650; Wed, 14 Jun 2023 07:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686754465; cv=none; d=google.com; s=arc-20160816; b=DjjHGLsKwcdILB2W/NGuyInGt0/9C/mAxvOMVQ4r7tFU4/6jtxk6V+IwmOw0k+G1Mx g5S9zmwW46rM6CEGCwBSb7awxE8fedKg0c3A6P5jEw7uYFIACxkBSyo6KWurnEyy2hEO NOIS1ZU2DLRXh/ZBvyOyzFS6r81JRc5Wf9olpwHcEFXz7Dcw9M1LszfeUzcuss9pJW6k 5Sq060A1ewUPfu28fwXYjrZMnDrle5ZPm6cm9kfPUyGbTZ2oBydGG8D7RVJC/Ez+68D4 5haE2P31WzJ9Duys/2DrxErg7EYdpnRwH7s5H4Z82pm3p6jBDBDkX0wnVBe6vl0i4oVF RoSQ== 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:mime-version :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=qfAAuJQhQ1XEup+8eE7uI4MuK+lPb471zo/WR+pSkIo=; b=cVkHSgrms4s2oYFGsZBoKYjrlQZ131YIU02tY3Fe/pJ2egSbxSIP3LO8xx1jwOEN6q eG05l4IjYQYu6LVvaZt0zRhHMFyZICbcHqMCu20K8/WTRmSLUR1xMq2yQvNUpjkVf+Jt uKuGSVlwc7+eY3pneLjohFWKrPal0iiMAz8N/O6B8K8f8EjJLHWxxzvDQo4IBcxmMjTP jc7frd1rrEkfAK2rgGaa7N+YsZVyGR0lqQ3dnw5okjC+r1+dKtCGIvMXGeYobbucFJ2w EUd7+qsk6Ba/qpj/Ryh07yDagBp6+kZtF1daYQWBnYPkomQZoRiW9LWUfCZOvNsO+MIo yULw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=S7QX52lE; 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id rh7-20020a17090720e700b00977d2cbd3d0si6780255ejb.596.2023.06.14.07.54.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 07:54:25 -0700 (PDT) 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=S7QX52lE; 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 8CFEA385842D for ; Wed, 14 Jun 2023 14:54:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CFEA385842D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686754464; bh=qfAAuJQhQ1XEup+8eE7uI4MuK+lPb471zo/WR+pSkIo=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=S7QX52lEs2Ydh7z12Ysn9216D0Iyo237Mf5SukjBMnEemd30d8nSuru2Hvo7fzgbo PHXFUr9VXSM5UbNXZFSPGQunkGjrhoxiRYo72k9YQchAuTl7Jss1aB6BXxLJwS7I4G 3K68pTjdswlcfpRBr11S/H5CA7mBBAoxyvWeCkHQ= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id A08513858C53 for ; Wed, 14 Jun 2023 14:54:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A08513858C53 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-155-B4ntKuC5NJKwt6MXr4GuQw-1; Wed, 14 Jun 2023 10:54:14 -0400 X-MC-Unique: B4ntKuC5NJKwt6MXr4GuQw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BB59D810BB9 for ; Wed, 14 Jun 2023 14:54:13 +0000 (UTC) Received: from prancer.redhat.com (unknown [10.42.28.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DE7AD40C20F4 for ; Wed, 14 Jun 2023 14:54:12 +0000 (UTC) To: binutils@sourceware.org Subject: commit: Add expected failures for some bfin linker tests Date: Wed, 14 Jun 2023 15:54:11 +0100 Message-ID: <87ttva3xik.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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: Nick Clifton via Binutils From: Nick Clifton Reply-To: Nick Clifton 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?1768690250188041248?= X-GMAIL-MSGID: =?utf-8?q?1768690250188041248?= Hi Guys, I am checking in the patch below to add some expected failure markers for BFIN linker tests. This is mostly for tests that fail in the same way as they do for the FRV target - with a warning message about being unable to put fixups into a read-only section. Cheers Nick ld/ChangeLog 2023-06-14 Nick Clifton * testsuite/ld-elf/comm-data5.d: Expect to fail for bfin. * testsuite/ld-elf/ehdr_start-missing.d: Likewise. * testsuite/ld-elf/ehdr_start-userdef.d: Likewise. * testsuite/ld-elf/ehdr_start-weak.d: Likewise. * testsuite/ld-elf/ehdr_start.d: Likewise. * testsuite/ld-elf/pr19539.d: Likewise. * testsuite/ld-elf/pr22269a.d: Likewise. * testsuite/ld-elf/pr22269b.d: Likewise. * testsuite/ld-elf/pr23591.d: Likewise. * testsuite/ld-elf/pr23648.d: Likewise. * testsuite/ld-misc/defsym1.d: Likewise. * testsuite/ld-scripts/empty-address-1.d: Likewise. * testsuite/ld-scripts/empty-address-2a.d: Likewise. * testsuite/ld-scripts/empty-address-2b.d: Likewise. * testsuite/ld-scripts/pr14962-2.d: Likewise. * testsuite/ld-scripts/pr14962.d: Likewise. * testsuite/ld-scripts/weak.exp: Likewise. diff --git a/ld/testsuite/ld-elf/comm-data5.d b/ld/testsuite/ld-elf/comm-data5.d index 16fc9615641..d13535150a2 100644 --- a/ld/testsuite/ld-elf/comm-data5.d +++ b/ld/testsuite/ld-elf/comm-data5.d @@ -1,6 +1,6 @@ #source: comm-data5.s #ld: #readelf: -r -#xfail: frv-*-*linux* lm32-*-linux* +#xfail: bfin-*-*linux* frv-*-*linux* lm32-*-linux* There are no relocations in this file. diff --git a/ld/testsuite/ld-elf/ehdr_start-missing.d b/ld/testsuite/ld-elf/ehdr_start-missing.d index 259b0813cee..3fb85e00f2d 100644 --- a/ld/testsuite/ld-elf/ehdr_start-missing.d +++ b/ld/testsuite/ld-elf/ehdr_start-missing.d @@ -2,3 +2,4 @@ #ld: -e _start -T ehdr_start-missing.t --no-dynamic-linker #error: .*: undefined reference to `__ehdr_start' #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: bfin-*-* diff --git a/ld/testsuite/ld-elf/ehdr_start-userdef.d b/ld/testsuite/ld-elf/ehdr_start-userdef.d index 36c6d7ed7c3..93ed0d8138d 100644 --- a/ld/testsuite/ld-elf/ehdr_start-userdef.d +++ b/ld/testsuite/ld-elf/ehdr_start-userdef.d @@ -2,7 +2,7 @@ #ld: -e _start -T ehdr_start-userdef.t #readelf: -Ws #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: frv-*-* +#xfail: bfin-*-* frv-*-* #... Symbol table '\.symtab' contains [0-9]+ entries: diff --git a/ld/testsuite/ld-elf/ehdr_start-weak.d b/ld/testsuite/ld-elf/ehdr_start-weak.d index 5537b8ff25d..c4f9072e42a 100644 --- a/ld/testsuite/ld-elf/ehdr_start-weak.d +++ b/ld/testsuite/ld-elf/ehdr_start-weak.d @@ -2,7 +2,7 @@ #ld: -e _start -T ehdr_start-missing.t --no-dynamic-linker #nm: -n #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: frv-*-* +#xfail: bfin-*-* frv-*-* #failif #... diff --git a/ld/testsuite/ld-elf/ehdr_start.d b/ld/testsuite/ld-elf/ehdr_start.d index 0b7afdf20ca..0ec3b134831 100644 --- a/ld/testsuite/ld-elf/ehdr_start.d +++ b/ld/testsuite/ld-elf/ehdr_start.d @@ -2,7 +2,7 @@ #ld: -e _start --build-id #nm: -n #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: frv-*-* lm32-*-* +#xfail: bfin-*-* frv-*-* lm32-*-* #... [0-9a-f]*000 [Adrt] __ehdr_start diff --git a/ld/testsuite/ld-elf/pr19539.d b/ld/testsuite/ld-elf/pr19539.d index 3760c060361..99cfd9db917 100644 --- a/ld/testsuite/ld-elf/pr19539.d +++ b/ld/testsuite/ld-elf/pr19539.d @@ -4,7 +4,8 @@ #readelf : --dyn-syms --wide #warning: .*: creating DT_TEXTREL in a PIE #target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi -#xfail: ![check_pie_support] +# The BFIN target always generates a relocation. +#xfail: ![check_pie_support] || bfin-*-* Symbol table '\.dynsym' contains [0-9]+ entr(y|ies): #pass diff --git a/ld/testsuite/ld-elf/pr22269a.d b/ld/testsuite/ld-elf/pr22269a.d index 1ac29aef43c..8644d0e095f 100644 --- a/ld/testsuite/ld-elf/pr22269a.d +++ b/ld/testsuite/ld-elf/pr22269a.d @@ -3,7 +3,8 @@ #ld: -pie --no-dynamic-linker #readelf: -r -x .data.rel.ro #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: ![check_pie_support] +# The BFIN target always generates a relocation. +#xfail: ![check_pie_support] || bfin-*-* There are no relocations in this file. diff --git a/ld/testsuite/ld-elf/pr22269b.d b/ld/testsuite/ld-elf/pr22269b.d index d3eed582054..1d8e7bd2d90 100644 --- a/ld/testsuite/ld-elf/pr22269b.d +++ b/ld/testsuite/ld-elf/pr22269b.d @@ -4,7 +4,8 @@ #readelf: -r -x .data.rel.ro #warning: -z dynamic-undefined-weak ignored #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: ![check_pie_support] +# The BFIN target always generates a relocation. +#xfail: ![check_pie_support] || bfin-*-* There are no relocations in this file. diff --git a/ld/testsuite/ld-elf/pr23591.d b/ld/testsuite/ld-elf/pr23591.d index c9cfdfa4352..925453873e1 100644 --- a/ld/testsuite/ld-elf/pr23591.d +++ b/ld/testsuite/ld-elf/pr23591.d @@ -3,8 +3,8 @@ #source: pr23591c.s #ld: -e _start #readelf: -sW -#xfail: frv-*-linux* lm32-*-linux* -# frv-linux and lm32-linux fail with complaints about emitting dynamic +#xfail: bfin-*-*linux* frv-*-linux* lm32-*-linux* +# bfin, frv, and lm32 fail with complaints about emitting dynamic # relocations in read-only sections. #... diff --git a/ld/testsuite/ld-elf/pr23648.d b/ld/testsuite/ld-elf/pr23648.d index 2990977a574..4b9b9be76e6 100644 --- a/ld/testsuite/ld-elf/pr23648.d +++ b/ld/testsuite/ld-elf/pr23648.d @@ -1,6 +1,6 @@ #ld: --gc-sections -T pr23648.t #target: [check_gc_sections_available] -#xfail: frv-*-linux* lm32-*-linux* +#xfail: bfin-*-*linux* frv-*-linux* lm32-*-linux* #nm: -B #failif diff --git a/ld/testsuite/ld-misc/defsym1.d b/ld/testsuite/ld-misc/defsym1.d index b0d7c77da6d..95868c45ac5 100644 --- a/ld/testsuite/ld-misc/defsym1.d +++ b/ld/testsuite/ld-misc/defsym1.d @@ -1,7 +1,7 @@ #ld: -e 0 --defsym foo=1 tmpdir/start.o tmpdir/libfoo.a #nm: -B #source: dummy.s -#xfail: frv-*-linux* +#xfail: bfin-*-*linux* frv-*-linux* # Check that --defsym works on archive. #failif diff --git a/ld/testsuite/ld-scripts/empty-address-1.d b/ld/testsuite/ld-scripts/empty-address-1.d index c758b968f0b..a2940b3d2c9 100644 --- a/ld/testsuite/ld-scripts/empty-address-1.d +++ b/ld/testsuite/ld-scripts/empty-address-1.d @@ -1,6 +1,6 @@ #ld: -T empty-address-1.t #nm: -n -#xfail: frv-*-*linux* +#xfail: bfin-*-*linux* frv-*-*linux* #... 0+0 [AT] _start #... diff --git a/ld/testsuite/ld-scripts/empty-address-2a.d b/ld/testsuite/ld-scripts/empty-address-2a.d index 0f1c0db6941..ea6048d5cd8 100644 --- a/ld/testsuite/ld-scripts/empty-address-2a.d +++ b/ld/testsuite/ld-scripts/empty-address-2a.d @@ -1,7 +1,7 @@ #source: empty-address-2.s #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2a.t #nm: -n -#xfail: frv-*-*linux* riscv64*-*-* tic54x-*-* +#xfail: bfin-*-*linux* frv-*-*linux* riscv64*-*-* tic54x-*-* #... 0+0 T _start #... diff --git a/ld/testsuite/ld-scripts/empty-address-2b.d b/ld/testsuite/ld-scripts/empty-address-2b.d index b571df67dc8..95499405940 100644 --- a/ld/testsuite/ld-scripts/empty-address-2b.d +++ b/ld/testsuite/ld-scripts/empty-address-2b.d @@ -1,7 +1,7 @@ #source: empty-address-2.s #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2b.t #nm: -n -#xfail: frv-*-*linux* riscv64*-*-* tic54x-*-* +#xfail: bfin-*-*linux* frv-*-*linux* riscv64*-*-* tic54x-*-* #... 0+0 T _start #... diff --git a/ld/testsuite/ld-scripts/pr14962-2.d b/ld/testsuite/ld-scripts/pr14962-2.d index b80b6e6bc31..8df00d9d1f4 100644 --- a/ld/testsuite/ld-scripts/pr14962-2.d +++ b/ld/testsuite/ld-scripts/pr14962-2.d @@ -1,7 +1,7 @@ #ld: -T pr14962-2.t #source: pr14962a.s #nm: -n -#xfail: frv-*-*linux* +#xfail: bfin-*-*linux* frv-*-*linux* #... 0+2000 [AT] _start diff --git a/ld/testsuite/ld-scripts/pr14962.d b/ld/testsuite/ld-scripts/pr14962.d index b7b0c3581da..779b3c92677 100644 --- a/ld/testsuite/ld-scripts/pr14962.d +++ b/ld/testsuite/ld-scripts/pr14962.d @@ -5,6 +5,8 @@ #xfail: mmix-knuth-mmixware # The reference to x would normally generate a cross-reference error # but the linker script converts x to absolute to avoid the error. +#xfail: bfin-*-*linux* +# The bfin backend complains about attempting to put a fixup into a read-only section. #... 0+2000 A x diff --git a/ld/testsuite/ld-scripts/weak.exp b/ld/testsuite/ld-scripts/weak.exp index 654cf716164..dff087d3a2a 100644 --- a/ld/testsuite/ld-scripts/weak.exp +++ b/ld/testsuite/ld-scripts/weak.exp @@ -26,6 +26,7 @@ set testname "weak symbols" if { [is_elf_format] } { # hppa64 is incredibly broken setup_xfail hppa64-*-* + setup_xfail bfin-*-* } elseif { [is_pecoff_format] } { # Weak symbols are broken for most PE targets. if { ![istarget aarch64-*-*]