mirror of
https://github.com/rui314/mold.git
synced 2024-10-04 16:48:04 +03:00
[ELF] Remove "GNU gold" from the --version string
That substring was introduced in de7ba9014f
to appease Gentoo's dev-libs/jansson-2.13.1-r1 package. But I think I
shouldn't done that from the beginning to avoid the sitaution of the
"User-Agent" string of the web browser, which everybody claims they
are Mozilla, AppleWebKit, Chrome and Safari simultaneously.
This commit is contained in:
parent
205138f16e
commit
cea6a569af
4
main.cc
4
main.cc
@ -26,10 +26,10 @@ std::string_view errno_string() {
|
||||
|
||||
#ifdef GIT_HASH
|
||||
const std::string mold_version =
|
||||
"mold " MOLD_VERSION " (" GIT_HASH "; compatible with GNU ld and GNU gold)";
|
||||
"mold " MOLD_VERSION " (" GIT_HASH "; compatible with GNU ld)";
|
||||
#else
|
||||
const std::string mold_version =
|
||||
"mold " MOLD_VERSION " (compatible with GNU ld and GNU gold)";
|
||||
"mold " MOLD_VERSION " (compatible with GNU ld)";
|
||||
#endif
|
||||
|
||||
void cleanup() {
|
||||
|
@ -10,10 +10,10 @@ mold="$(pwd)/mold"
|
||||
t=out/test/elf/$testname
|
||||
mkdir -p $t
|
||||
|
||||
"$mold" -v | grep -q 'mold .*compatible with GNU ld and GNU gold'
|
||||
"$mold" --version | grep -q 'mold .*compatible with GNU ld and GNU gold'
|
||||
"$mold" -v | grep -q 'mold .*compatible with GNU ld'
|
||||
"$mold" --version | grep -q 'mold .*compatible with GNU ld'
|
||||
|
||||
"$mold" -V | grep -q 'mold .*compatible with GNU ld and GNU gold'
|
||||
"$mold" -V | grep -q 'mold .*compatible with GNU ld'
|
||||
"$mold" -V | grep -q elf_x86_64
|
||||
"$mold" -V | grep -q elf_i386
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user