From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 936AD3898395 for ; Mon, 20 Feb 2023 10:01:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 936AD3898395 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-wr1-x429.google.com with SMTP id j2so317223wrh.9 for ; Mon, 20 Feb 2023 02:01:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HhrrJB3X4zWbRgVnHF9qn3XYlZR+hhck1G6bePpVARM=; b=V9H8nvyDPZwiiBhgHX270jSnAR45y02MUQA5wjMfnFamhusKs3EA6yO47X1CLtLp/W MAxXIf9U5eUnNZ2Lf4diSNrQEoMCYtCAckWiKn9CYNYwKSjvTtqCPJJtSvhPIUwx2GRa t4neB1wFEKweD0fCA2lmXPtSSQEjsSgej05zR5TDyqw+Bo7rQUH6N6Jk36piFb4/DzeN T1dR8Ok+oPk7dLB035FSlSyYOMqgLPKnBz26Sgwl9M5ei0x/tBJVkgAYqmHSvSD0OT1L Tr+b3erKqEQ/bu7y9B/jCXj7zBcR0uef2RWsrJ379RRzAMF5QPT6hKH6rvdWWXnoHlCm WFzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HhrrJB3X4zWbRgVnHF9qn3XYlZR+hhck1G6bePpVARM=; b=kFTSYjH4/MN5YGvlQC10DlDpmR6gPpVbDMq9C9kmEY3A3UBXcHuhbpNvNVokGZQGEE 9PGxOyZY78ukG71Nvx8HDqTmDbb0hRxnfBSfTV/dzAwYynyhiyH7gg5SmHdlnSGbkExc Xl9jT3q6lli+S18JELweDDJYEvbm3QOgsKSln1ihLhvXYXfqhLg/3P81gCNHLyTpuM3w 1jO/VM5AcbHxtGWRtx3f3cZCtiNEBou3F/5aJNRKEeZViUP5oVCYqGclFAlac1kC9G2g zw0modK3mlWKtzbUm96fdxXb/HY+Nr0Ief5zEk8tHjpleJPDcq7qy5T0tRW5fe2SvLzh Jivg== X-Gm-Message-State: AO0yUKVd90mT1dyFzyuVofZGju+xmw3r3Gayb23oiDF8Ha9sumvsnFOh 0xDRzfuJgKVu59JUKPVsNUqw6hO/KYYjNrER X-Google-Smtp-Source: AK7set8+vULW8YiHvBT0ts35doOIUpcRE9wtd7sgNsXReoI39/THHEehBD8j+/MTSpkEyJVfttbnYg== X-Received: by 2002:a05:600c:a287:b0:3df:ea9a:21c9 with SMTP id hu7-20020a05600ca28700b003dfea9a21c9mr338481wmb.27.1676881373249; Mon, 20 Feb 2023 00:22:53 -0800 (PST) Received: from chigot-Dell.home ([2a01:cb15:8123:8100:c288:32ca:f666:6773]) by smtp.gmail.com with ESMTPSA id z8-20020a1c4c08000000b003e1f319b87bsm13336888wmf.24.2023.02.20.00.22.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 00:22:52 -0800 (PST) From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= To: binutils@sourceware.org Cc: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Subject: [PATCH 4/4] ld/testsuite: handle Windows drive letter in a noinit test Date: Mon, 20 Feb 2023 09:22:24 +0100 Message-Id: <20230220082224.415968-4-chigot@adacore.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230220082224.415968-1-chigot@adacore.com> References: <20230220082224.415968-1-chigot@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The regexp in "noinit sections (ld -r)" is skipping the file path before the first ":". However, on Windows, a path can start with "C:". Adjust the regexp to allow such cases. ld/ChangeLog: * testsuite/ld-elf/noinit-sections-2.l: Allow Windows paths (starting with C:). --- ld/testsuite/ld-elf/noinit-sections-2.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ld/testsuite/ld-elf/noinit-sections-2.l b/ld/testsuite/ld-elf/noinit-sections-2.l index 0784c9e3e12..8ed2716c549 100644 --- a/ld/testsuite/ld-elf/noinit-sections-2.l +++ b/ld/testsuite/ld-elf/noinit-sections-2.l @@ -1,5 +1,5 @@ #... -[^:]*: warning: orphan section `.noinit.var_noinit' from \S+ being placed in section `.noinit.var_noinit' +(|.:)[^:]*: warning: orphan section `.noinit.var_noinit' from \S+ being placed in section `.noinit.var_noinit' #... -[^:]*: warning: orphan section `.gnu.linkonce.n.var_noinit2' from \S+ being placed in section `.gnu.linkonce.n.var_noinit2' +(|.:)[^:]*: warning: orphan section `.gnu.linkonce.n.var_noinit2' from \S+ being placed in section `.gnu.linkonce.n.var_noinit2' #pass -- 2.25.1