diff options
author | Clément Chigot <chigot@adacore.com> | 2023-01-18 14:44:39 +0100 |
---|---|---|
committer | Clément Chigot <chigot@adacore.com> | 2023-02-20 15:24:00 +0100 |
commit | a38cd00799f54973983ac9bfadbca915d02e85ef (patch) | |
tree | cd53a7ce0b544cd1b627e85a3e8450a04d969348 /ld | |
parent | df937aa12a387ea743eb413a719253ec0ffe131b (diff) | |
download | binutils-a38cd00799f54973983ac9bfadbca915d02e85ef.zip binutils-a38cd00799f54973983ac9bfadbca915d02e85ef.tar.gz binutils-a38cd00799f54973983ac9bfadbca915d02e85ef.tar.bz2 |
ld/testsuite: handle Windows drive letter in a noinit test
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:).
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-elf/noinit-sections-2.l | 4 |
1 files 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 0784c9e..8ed2716 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 |