From: "Clément Chigot" <chigot@adacore.com>
To: binutils@sourceware.org
Cc: amodra@gmail.com, "Clément Chigot" <chigot@adacore.com>
Subject: [PATCH] ld/testsuite: handle Windows drive letter in persistent section
Date: Tue, 21 Feb 2023 10:03:31 +0100 [thread overview]
Message-ID: <20230221090331.559683-1-chigot@adacore.com> (raw)
The regexp in ".persistent 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/persistent-sections-2.l: Allow Windows
paths (starting with C:).
---
ld/testsuite/ld-elf/persistent-sections-2.l | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ld/testsuite/ld-elf/persistent-sections-2.l b/ld/testsuite/ld-elf/persistent-sections-2.l
index a5bbe4b04f2..e28cb98f72a 100644
--- a/ld/testsuite/ld-elf/persistent-sections-2.l
+++ b/ld/testsuite/ld-elf/persistent-sections-2.l
@@ -1,5 +1,5 @@
#...
-[^:]*: warning: orphan section `.persistent.var_persistent' from \S+ being placed in section `.persistent.var_persistent'
+(|.:)[^:]*: warning: orphan section `.persistent.var_persistent' from \S+ being placed in section `.persistent.var_persistent'
#...
-[^:]*: warning: orphan section `.gnu.linkonce.p.var_persistent2' from \S+ being placed in section `.gnu.linkonce.p.var_persistent2'
+(|.:)[^:]*: warning: orphan section `.gnu.linkonce.p.var_persistent2' from \S+ being placed in section `.gnu.linkonce.p.var_persistent2'
#pass
--
2.25.1
next reply other threads:[~2023-02-21 9:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 9:03 Clément Chigot [this message]
2023-02-21 9:14 ` Clément Chigot
2023-02-21 9:25 ` Jan Beulich
2023-02-21 16:16 ` Clément Chigot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230221090331.559683-1-chigot@adacore.com \
--to=chigot@adacore.com \
--cc=amodra@gmail.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).