Re: Add --enable-linker-version option

The recently-added ld-version*.d tests expect
.*GNU ld \(GNU Binutils\) 2.*
in the .comment section.

However, when buidling --with-pkgversion=XXX, we get
GNU ld (XXX) 2.[...]
instead, leading to a spurious FAIL.

This small patch replaces "GNU Binutils" with ".*" instead.

I inspected other testcases to see if we already had similar
occurrences but I couldn't see any, so I hope this fix is OK for the
purpose?

Thanks,

Christophe
This commit is contained in:
Christophe Lyon
2023-03-16 13:03:40 +00:00
parent a8afc8a7e1
commit b7571e1e6f
2 changed files with 2 additions and 2 deletions

View File

@@ -4,4 +4,4 @@
# target: [is_elf_format]
String dump of section '.comment':
.*GNU ld \(GNU Binutils\) 2.*
.*GNU ld \(.*\) 2.*

View File

@@ -4,4 +4,4 @@
# target: [is_elf_format]
String dump of section '.comment':
.*GNU ld \(GNU Binutils\) 2.*
.*GNU ld \(.*\) 2.*