From patchwork Thu Aug 31 15:44:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 75069 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AED79385840D for ; Thu, 31 Aug 2023 15:45:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AED79385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693496754; bh=GSNbIe71+QOT9bYO5ZssqJSp+YThToqg4CjJlhqCQD8=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=j+cMRhUYoBkgbxSafD3JDkMMS8apAGnu7ztSMkXu2n93n5h11eYhTYLgeweRvMLLJ Hezo2Up/V2TBFU+YhwcHey/p1irKn985lDX13hUFkPWUBH6R/SvF9R+5/Dfg9C9uTn Jev00EvwkItImin3ccY+1Ep4vPggIc84XtJiysnM= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by sourceware.org (Postfix) with ESMTPS id 573213858D20 for ; Thu, 31 Aug 2023 15:45:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 573213858D20 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5735282d713so585563eaf.2 for ; Thu, 31 Aug 2023 08:45:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693496721; x=1694101521; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GSNbIe71+QOT9bYO5ZssqJSp+YThToqg4CjJlhqCQD8=; b=i+RcGKPx+qdyoMdQYHsCzKM5EhYDuwJ7u3AGw1dlfSKgim33iN6pFSnLTmlRGHSKBT Px/bGqvPYVn7FFGTi9Yd/e/vhNlEEAzOf9AB95u2qMn9o0FqrUp/5dc+dYbhvPRuMDjc ro2J0/2eMOmWiyBtvBFFTwj9LwgBnN1vFmtZkRg90fT+9Iu1eAet02ZkTGhjGV9K1PwS PsyFHBa6Xdqy/Od/FwenGOQVn1ufVyrP0SRqz668zPf6PireivPGu6qnZuCKAxt1+3pz JG69EgDCEKclnBqOjL8xU+82Bgm8r6TxEtpV+5sIYnxRwP6BObdu7mHF31fOZjHhnxHV yhSw== X-Gm-Message-State: AOJu0YxCZBI+L52EdTBD2WbcfeJ+v95BDr8IZECgp7q0syzAkvhgcZp6 GCs3zIxR+jxC8BozUwtPxSUg7Jned6mOTgn3oy8= X-Google-Smtp-Source: AGHT+IG1QdmFaVHZRfXNyDb9jNxp5TDL2E3p2/H1Wv+XKfT6HG6ntr8EPEWI5cBhUGcUzzGUxlh907UZuGbvhQOWIPY= X-Received: by 2002:a05:6358:e49f:b0:134:c4dc:2c43 with SMTP id by31-20020a056358e49f00b00134c4dc2c43mr6206126rwb.28.1693496721491; Thu, 31 Aug 2023 08:45:21 -0700 (PDT) MIME-Version: 1.0 References: <20230830173149.757103-1-hjl.tools@gmail.com> In-Reply-To: Date: Thu, 31 Aug 2023 08:44:45 -0700 Message-ID: Subject: [PATCH] elf: Adjust PR ld/30791 tests To: Alan Modra Cc: Binutils X-Spam-Status: No, score=-3022.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.30 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+patchwork=sourceware.org@sourceware.org Sender: "Binutils" On Thu, Aug 31, 2023 at 1:54 AM Alan Modra wrote: > > On Wed, Aug 30, 2023 at 10:31:49AM -0700, H.J. Lu via Binutils wrote: > > For relocatable link, don't merge 2 SHF_LINK_ORDER sections if output > > sections of their linked to sections are different. > > d30v-elf +FAIL: ld-elf/pr30791a > dlx-elf +FAIL: ld-elf/pr30791a > fr30-elf +FAIL: ld-elf/pr30791a > frv-elf +FAIL: ld-elf/pr30791a > ft32-elf +FAIL: ld-elf/pr30791a > hppa-linux-gnu +FAIL: ld-elf/pr30791b > iq2000-elf +FAIL: ld-elf/pr30791a > mn10200-elf +FAIL: ld-elf/pr30791a > msp430-elf +FAIL: ld-elf/pr30791a > mt-elf +FAIL: ld-elf/pr30791a > pj-elf +FAIL: ld-elf/pr30791a > s12z-elf +FAIL: ld-elf/pr30791a > xgate-elf +FAIL: ld-elf/pr30791a > z80-elf +FAIL: ld-elf/pr30791a > z80-elf +FAIL: ld-elf/pr30791b > > -- > Alan Modra > Australia Development Lab, IBM Here is a patch to adjust tests. 1. Generic linker targets don't comply with all orhpan section merging rules. 2. z80 fails since a, b, c, d are registers for z80. 3. hppa fails since .text sections aren't merged for relocatable link. From 4c41d6f07eb9ea529bbc0d153bfcd8e1b49020ec Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 31 Aug 2023 08:38:10 -0700 Subject: [PATCH] elf: Adjust PR ld/30791 tests Adjust PR ld/30791 tests: 1. Generic linker targets don't comply with all orhpan section merging rules. 2. z80 fails since a, b, c, d are registers for z80. 3. hppa fails since .text sections aren't merged for relocatable link. PR ld/30791 * testsuite/ld-elf/pr30791a.d: Xfail for generic and z80 targets. * testsuite/ld-elf/pr30791b.d: Xfail for hppa and z80 targets. --- ld/testsuite/ld-elf/pr30791a.d | 4 ++++ ld/testsuite/ld-elf/pr30791b.d | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ld/testsuite/ld-elf/pr30791a.d b/ld/testsuite/ld-elf/pr30791a.d index 2446b525fa9..a699f2ab207 100644 --- a/ld/testsuite/ld-elf/pr30791a.d +++ b/ld/testsuite/ld-elf/pr30791a.d @@ -2,6 +2,10 @@ #source: pr30791b.s #ld: -r #readelf: -S --wide +#xfail: [is_generic] fr30-*-* frv-*-elf ft32-*-* iq2000-*-* mn10200-*-* +#xfail: msp430-* mt-*-* z80-*-* +# Generic linker targets don't comply with all orhpan section merging +# rules. z80 fails since a, b, c, d are registers for z80. #... Section Headers: diff --git a/ld/testsuite/ld-elf/pr30791b.d b/ld/testsuite/ld-elf/pr30791b.d index 5013c240f8a..bb8e19e9468 100644 --- a/ld/testsuite/ld-elf/pr30791b.d +++ b/ld/testsuite/ld-elf/pr30791b.d @@ -2,6 +2,9 @@ #source: pr30791d.s #ld: -r #readelf: -S --wide +#xfail: hppa-*-* z80-*-* +# hppa fails since .text sections aren't merged for relocatable link. +# z80 fails since a, b, c, d are registers for z80. #failif #... -- 2.41.0