From patchwork Sat Dec 16 04:01:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 179802 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp24821dyi; Fri, 15 Dec 2023 20:04:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHTDbPi1smwaUe7AGs8oyUeJRQi7/U8hjZz06HUpskr2g+WbPFzkanwC+2sVZOyBMe2D97 X-Received: by 2002:a05:622a:1102:b0:418:2268:992b with SMTP id e2-20020a05622a110200b004182268992bmr18020082qty.14.1702699497518; Fri, 15 Dec 2023 20:04:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702699497; cv=pass; d=google.com; s=arc-20160816; b=s4b+YdK6Tt5XqD7geAota5YXz5G+DVsczKWvJa+xKlN1kOt15O1mCSCozdoC6LjGr6 btUBZLBu036P9zxPBNGCKkfev+6SkbPxkVp7+uRbXAIGRyMKPqRvmftmnAwLyrTsoiut xbgc27Ssr084Ulh9RI2M3S63Gmnljf+ydB4hiT2CV5AsDADQU2fvdmlXOLXXjySTjEIU ToWvjtXub6NrBuh8/BzjkGkHJwV9AnqrbG59ef3iM16s+2JHVZBxCMlnlXz4JyetG83p cBr9X+985WQXjzyAYw9cjtrxhw6Hl/LM5ivDKe9TVUOGfVNkNdLJWgmwZwOOnosAB07s kIFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:arc-filter:dmarc-filter:delivered-to; bh=3Ycj+tZ2wRzRbQnpVYVHNIK/4SxNyZHTasQwmKtogfY=; fh=8q0FNsHanCJPI6EPxbmjnCgcUOgjtP8i5rHqen9ihv0=; b=x/qw+f3ChUPnF3Wk72UVC1sUuwx9sJirIaS/rCdBtWPGQF49dzFtkhKmgfcw0y0QPQ y5zJHPXXifvHn2qAbURZQPz6tJLQyUGJG2Rw/ryifXdm0WCzbrvPfK1mBAkCPFoXorHx +sDVXw/XZttB3ssIMrfOSLmErzgE6w1uLGlubqRuVy61qV3e30ENAp//kMvr560jRAeb hqXTcDu1j0DYdyJg0LlkAaEWa3luobd/AiA5pY3gPzflX5mH1kupNZR2/BH+QYaic5/c 9zrDkTHgnp+XE1UAOLxFK4n8+aDMzucyg6GbL4sFkoteHOAr/XCAHGjdFaONyuKG1OMY BwEg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id w13-20020ac857cd000000b00425dd10da3fsi9568611qta.25.2023.12.15.20.04.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 20:04:57 -0800 (PST) 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; arc=pass (i=1); 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=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 201DA383A612 for ; Sat, 16 Dec 2023 04:04:11 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id E64963857833 for ; Sat, 16 Dec 2023 04:02:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E64963857833 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E64963857833 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702699378; cv=none; b=RQcn2QRhPyzDZHkho374hbBKF3AODED4xPIYAfZnlIb2y+7K5B81GtH7HFgLq1A7Iem/lrPmOA6RQMyF20ISNF3gfbZNuNEX5ctAIfFsNQ7tW+2+29vVc/d5VgmPffVmUB4NbaKgikc5s4vL2InZbOkGdGMiFCPs8r7XmjhAEic= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702699378; c=relaxed/simple; bh=dOFjhHpd0L665PNzlHtE8Sv0LrUSO0oJgxV/TiwKQTU=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=tsiqAH3B9pAuIR1D47jNbfMfhYwCA25UJoh5E+1Helk61HkimoK0c+hKyUrOl0ovxVh98YpgzBxr78s8iRWO/wq+t/tISP/b2thKpCJLGWuPKc/DhaKljG8QNPFUUe037vzz4srmNo4VXv4jPOxyx5fBYOjzUZA6Al7ehC6vAJA= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: binutils@sourceware.org Cc: nickc@redhat.com, Sam James Subject: [2.41 PATCH 06/10] ld: fix relocatable, retain7a target pattens for HPPA Date: Sat, 16 Dec 2023 04:01:29 +0000 Message-ID: <20231216040239.1981071-7-sam@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231216040239.1981071-1-sam@gentoo.org> References: <20231216040239.1981071-1-sam@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, 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.30 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785409828415853287 X-GMAIL-MSGID: 1785409828415853287 Fix issue reported by Dave and Alan. Put back the old pattern for hppa-*-linux* and add hppa[12]*-*-linux* to cover Gentoo's hppa1.1 and hppa2.0 without including hppa64 inadvertently like I did before. ld/ PR 30733 PR 30734 * ld/testsuite/ld-elf/relocatable.d: Use better pattern to exclude hppa64 but include hppa1.1, hppa2.0. * ld/testsuite/ld-elf/retain7a.d: Ditto. Fixes: 0e339f6b4f2df25ed351cb94dc7fe16868626f49 Fixes: e3b66187192ce6840df283c00f6395bb0ff15cf5 Signed-off-by: Sam James (cherry picked from commit 3b23a5ea693deee60648c9a9e9d666d83549298e) --- ld/testsuite/ld-elf/relocatable.d | 2 +- ld/testsuite/ld-elf/retain7a.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ld/testsuite/ld-elf/relocatable.d b/ld/testsuite/ld-elf/relocatable.d index cb39baa52bc..33a04912fd0 100644 --- a/ld/testsuite/ld-elf/relocatable.d +++ b/ld/testsuite/ld-elf/relocatable.d @@ -2,7 +2,7 @@ #source: simple.s #ld: -r -T relocatable.t #readelf: -S --wide -#xfail: hppa*-*-* +#xfail: hppa-*-* hppa[12]*-*-* #... \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t]+0+800000[ \t0-9a-f]+AX.* diff --git a/ld/testsuite/ld-elf/retain7a.d b/ld/testsuite/ld-elf/retain7a.d index 38d9a9ba255..406aaa40ad5 100644 --- a/ld/testsuite/ld-elf/retain7a.d +++ b/ld/testsuite/ld-elf/retain7a.d @@ -2,7 +2,7 @@ #source: retain7.s #ld: -e _start --gc-sections # hppa-linux chooses ELFOSABI_GNU regardless of GNU feature use -#notarget: ![supports_gnu_osabi] ![check_gc_sections_available] hppa*-*-linux* +#notarget: ![supports_gnu_osabi] ![check_gc_sections_available] hppa-*-linux* hppa[12]*-*-linux* #readelf: -h #failif