public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] ld/testsuite: handle Windows drive letter in persistent section
@ 2023-02-21  9:03 Clément Chigot
  2023-02-21  9:14 ` Clément Chigot
  2023-02-21  9:25 ` Jan Beulich
  0 siblings, 2 replies; 4+ messages in thread
From: Clément Chigot @ 2023-02-21  9:03 UTC (permalink / raw)
  To: binutils; +Cc: amodra, Clément Chigot

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-21 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21  9:03 [PATCH] ld/testsuite: handle Windows drive letter in persistent section Clément Chigot
2023-02-21  9:14 ` Clément Chigot
2023-02-21  9:25 ` Jan Beulich
2023-02-21 16:16   ` Clément Chigot

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).