From patchwork Fri Jul 28 05:06:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 127323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp203531vqg; Thu, 27 Jul 2023 22:10:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlFfGOwKWbJBl81eiL4EQKCHEw/Xqsk0HAZNd9PPzcvFajHOqrAH0PD5ApIn80s9nTrAtcAh X-Received: by 2002:a05:6402:78e:b0:522:678d:45e5 with SMTP id d14-20020a056402078e00b00522678d45e5mr978611edy.30.1690521059257; Thu, 27 Jul 2023 22:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690521059; cv=none; d=google.com; s=arc-20160816; b=c2elFZtqwP8ud5jyGHfwvQprZe0st5WmQwJKPwGuY7fHHvJcKX95KIr1s2L90cHYD+ PUGbjlWnLI5kGDvxVClMFLqkqFGhvkGxL54Nv5LVLB+swWU6SIZ185rqV/LURpedHp6o SzXxrqOST5+uXV9xBCSXFhSmhpur7zmgZ4bi4ngsrGu6+eEfzq0u96GrzLnVYkE5fqDR zpt7wL0POp2YgYIe+pNZSSGZnWGNWQzlXituPvbxx9GOvNXXHUBdev7vhhFV7btg5shg tIyKV9w+xccxCmE/APLrkvmb7tnVf/AsL1nhcSEF8GmYEpEaFsOXfMpu7iwNFJV24lDp /saw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dmarc-filter:delivered-to; bh=MggOu82MGxdxEwxDwf4/21JOfAA8p++Hmy4X7/9dHqE=; fh=Qo2J6dANwcPjQn140TSErRwEzDQnKw4Tx4jp1VOUUcA=; b=GidcsmlWN4XV2ubKZmUnOPPQJH9d98ndub1A0JCPejPFS0he8niXrD+u/naWBF8G8l V02Yeg15kGeU/q/oVIxwPMAjSCtIVVKEpDTfrugP5ivJ50cqHAY4Gt7p5EOZXBIxrUmQ xiSDSMzyDOtiYrk9nCrglPvyJRW96jfNGizvikk1acmJjJTdAdKWvK2HBoiMlsUKInG6 9PHQi/ehTPZtwnceBaKZlxXFMQjyipct3qCRS2p3nkntHae0AtKTXUcP8Do7f4trAW+y p5i8bP93OwBi7PnVYcGS/nAzypiUOgHJPijtb2AwaVJogJHjHf7Zd4R9y0OAFU934nMQ sLHQ== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id w14-20020a056402128e00b0051a318aa40asi1925189edv.502.2023.07.27.22.10.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 22:10:59 -0700 (PDT) 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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0C70C3835ED6 for ; Fri, 28 Jul 2023 05:07:27 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by sourceware.org (Postfix) with ESMTP id 99F56385E02D for ; Fri, 28 Jul 2023 05:06:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 99F56385E02D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id 0B48592009E; Fri, 28 Jul 2023 07:06:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 062F692009B; Fri, 28 Jul 2023 06:06:56 +0100 (BST) Date: Fri, 28 Jul 2023 06:06:55 +0100 (BST) From: "Maciej W. Rozycki" To: Nick Clifton cc: YunQiang Su , binutils@sourceware.org Subject: [committed 06/16] MIPS/LD/testsuite: Fix `attr-gnu-4-10' failures with IRIX targets In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Spam-Status: No, score=-1163.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_INFOUSMEBIZ, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772639810172278201 X-GMAIL-MSGID: 1772639810172278201 IRIX targets do not enable the production of a `.pdr' section in GAS by default, which causes a failure with the `attr-gnu-4-10' test case due to a difference resulting in the number and indices of sections produced in linker output. As the presence or absence of this section is not relevant to this test case, just enable it unconditionally, fixing these regressions: mips-sgi-irix5 -FAIL: ld-mips-elf/attr-gnu-4-10 mips-sgi-irix6 -FAIL: ld-mips-elf/attr-gnu-4-10 ld/ * testsuite/ld-mips-elf/attr-gnu-4-10.d: Add `as' tag with `-mpdr'. --- ld/testsuite/ld-mips-elf/attr-gnu-4-10.d | 1 + 1 file changed, 1 insertion(+) binutils-mips-ld-test-irix-pdr.diff Index: binutils-gdb/ld/testsuite/ld-mips-elf/attr-gnu-4-10.d =================================================================== --- binutils-gdb.orig/ld/testsuite/ld-mips-elf/attr-gnu-4-10.d +++ binutils-gdb/ld/testsuite/ld-mips-elf/attr-gnu-4-10.d @@ -1,5 +1,6 @@ #source: attr-gnu-4-1.s #source: attr-gnu-4-0.s +#as: -mpdr #ld: -r #readelf: -hA