USE_BFD_LD,
USE_LLD_LD,
USE_MOLD_LD,
+ USE_WILD_LD,
USE_LD_MAX
} selected_linker = USE_DEFAULT_LD;
static const char *const ld_suffixes[USE_LD_MAX] =
"ld.gold",
"ld.bfd",
"ld.lld",
- "ld.mold"
+ "ld.mold",
+ "wild"
};
static const char *const real_ld_suffix = "real-ld";
static const char *const collect_ld_suffix = "collect-ld";
#ifdef CROSS_DIRECTORY_STRUCTURE
/* lld and mold are platform-agnostic and not prefixed with target
triple. */
- if (!(i == USE_LLD_LD || i == USE_MOLD_LD))
+ if (!(i == USE_LLD_LD || i == USE_MOLD_LD || i == USE_WILD_LD))
full_ld_suffixes[i] = concat (target_machine, "-", ld_suffixes[i],
NULL);
else
selected_linker = USE_LLD_LD;
else if (strcmp (argv[i], "-fuse-ld=mold") == 0)
selected_linker = USE_MOLD_LD;
+ else if (strcmp (argv[i], "-fuse-ld=wild") == 0)
+ selected_linker = USE_WILD_LD;
else if (startswith (argv[i], "-o"))
{
/* Parse the output filename if it's given so that we can make
ld_file_name = 0;
#ifdef DEFAULT_LINKER
if (selected_linker == USE_BFD_LD || selected_linker == USE_GOLD_LD ||
- selected_linker == USE_LLD_LD || selected_linker == USE_MOLD_LD)
+ selected_linker == USE_LLD_LD || selected_linker == USE_MOLD_LD ||
+ selected_linker == USE_WILD_LD)
{
char *linker_name;
# ifdef HOST_EXECUTABLE_SUFFIX
else if (!use_collect_ld
&& startswith (arg, "-fuse-ld="))
{
- /* Do not pass -fuse-ld={bfd|gold|lld|mold} to the linker. */
+ /* Do not pass -fuse-ld={bfd|gold|lld|mold|wild} to the linker. */
ld1--;
ld2--;
}
Common Driver Negative(fuse-ld=mold)
Use the Modern linker (MOLD) linker instead of the default linker.
+fuse-ld=wild
+Common Driver Negative(fuse-ld=wild)
+Use the Wild linker instead of the default linker.
+
fuse-linker-plugin
Common Undocumented Var(flag_use_linker_plugin)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
$as_echo "$ld_is_mold" >&6; }
+# Check to see if we are using Wild instead of ld
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using wild" >&5
+$as_echo_n "checking whether we are using wild... " >&6; }
+ld_is_wild=no
+if test x$gcc_cv_ld != x; then
+ if $gcc_cv_ld --version 2>/dev/null | sed 1q \
+ | grep "Wild" > /dev/null; then
+ ld_is_wild=yes
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_wild" >&5
+$as_echo "$ld_is_wild" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
$as_echo_n "checking gold linker with split stack support as non default... " >&6; }
:
elif test x"$ld_is_mold" = xyes; then
:
+ elif test x"$ld_is_wild" = xyes; then
+ :
elif echo "$ld_ver" | grep GNU > /dev/null; then
if test 0"$ld_date" -lt 20020404; then
if test -n "$ld_date"; then
if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
&& $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
&& $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
+ # Note the Wild linker has --gc-sections on by default.
if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
- conftest2.o conftest3.o > /dev/null 2>&1 \
+ conftest2.o conftest3.o --no-gc-sections > /dev/null 2>&1 \
+ || $gcc_cv_ld -shared -o conftest1.so conftest1.o \
+ conftest2.o conftest3.o > /dev/null 2>&1 \
|| $gcc_cv_ld -r -o conftest1.so conftest1.o \
conftest2.o conftest3.o > /dev/null 2>&1; then
gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
comdat_group=yes
elif test x"$ld_is_mold" = xyes; then
comdat_group=yes
+elif test x"$ld_is_wild" = xyes; then
+ comdat_group=yes
elif test $in_tree_ld = yes ; then
comdat_group=no
if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
fi
AC_MSG_RESULT($ld_is_mold)
+# Check to see if we are using Wild instead of ld
+AC_MSG_CHECKING(whether we are using wild)
+ld_is_wild=no
+if test x$gcc_cv_ld != x; then
+ if $gcc_cv_ld --version 2>/dev/null | sed 1q \
+ | grep "Wild" > /dev/null; then
+ ld_is_wild=yes
+ fi
+fi
+AC_MSG_RESULT($ld_is_wild)
AC_MSG_CHECKING(gold linker with split stack support as non default)
# Check to see if default ld is not gold, but gold is
:
elif test x"$ld_is_mold" = xyes; then
:
+ elif test x"$ld_is_wild" = xyes; then
+ :
elif echo "$ld_ver" | grep GNU > /dev/null; then
if test 0"$ld_date" -lt 20020404; then
if test -n "$ld_date"; then
if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
&& $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
&& $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
+ # Note the Wild linker has --gc-sections on by default.
if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
- conftest2.o conftest3.o > /dev/null 2>&1 \
+ conftest2.o conftest3.o --no-gc-sections > /dev/null 2>&1 \
+ || $gcc_cv_ld -shared -o conftest1.so conftest1.o \
+ conftest2.o conftest3.o > /dev/null 2>&1 \
|| $gcc_cv_ld -r -o conftest1.so conftest1.o \
conftest2.o conftest3.o > /dev/null 2>&1; then
gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
comdat_group=yes
elif test x"$ld_is_mold" = xyes; then
comdat_group=yes
+elif test x"$ld_is_wild" = xyes; then
+ comdat_group=yes
elif test $in_tree_ld = yes ; then
comdat_group=no
if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
@item -fuse-ld=mold
Use the Modern Linker (@command{mold}) instead of the default linker.
+@opindex fuse-ld=wild
+@item -fuse-ld=wild
+Use the Wild linker (@command{wild}) instead of the default linker.
+
@cindex Libraries
@opindex l
@item -l@var{library}
use_ld = ".mold";
break;
+ case OPT_fuse_ld_wild:
+ use_ld = ".wild";
+ break;
+
case OPT_fcompare_debug_second:
compare_debug_second = 1;
break;
case OPT_fuse_ld_gold:
case OPT_fuse_ld_lld:
case OPT_fuse_ld_mold:
+ case OPT_fuse_ld_wild:
case OPT_fuse_linker_plugin:
/* No-op. Used by the driver and passed to us because it starts with f.*/
break;
dnl with_gnu_ld
dnl libat_ld_is_gold (possibly)
dnl libat_ld_is_mold (possibly)
+dnl libat_ld_is_wild (possibly)
dnl libat_gnu_ld_version (possibly)
dnl
dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will
# does some of this, but throws away the result.
libat_ld_is_gold=no
libat_ld_is_mold=no
+ libat_ld_is_wild=no
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
libat_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
libat_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ libat_ld_is_wild=yes
fi
changequote(,)
ldver=`$LD --version 2>/dev/null |
enable_symvers=gnu
elif test $libat_ld_is_mold = yes ; then
enable_symvers=gnu
+ elif test $libat_ld_is_wild = yes ; then
+ enable_symvers=gnu
else
# The right tools, the right setup, but too old. Fallbacks?
AC_MSG_WARN(=== Linker version $libat_gnu_ld_version is too old for)
# does some of this, but throws away the result.
libat_ld_is_gold=no
libat_ld_is_mold=no
+ libat_ld_is_wild=no
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
libat_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
libat_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ libat_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
enable_symvers=gnu
elif test $libat_ld_is_mold = yes ; then
enable_symvers=gnu
+ elif test $libat_ld_is_wild = yes ; then
+ enable_symvers=gnu
else
# The right tools, the right setup, but too old. Fallbacks?
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
dnl with_gnu_ld
dnl libgomp_ld_is_gold (possibly)
dnl libgomp_ld_is_mold (possibly)
+dnl libgomp_ld_is_wild (possibly)
dnl libgomp_gnu_ld_version (possibly)
dnl
dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will
# does some of this, but throws away the result.
libgomp_ld_is_gold=no
libgomp_ld_is_mold=no
+ libgomp_ld_is_wild=no
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
libgomp_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
libgomp_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild'> /dev/null 2>&1; then
+ libgomp_ld_is_wild=yes
fi
changequote(,)
ldver=`$LD --version 2>/dev/null |
enable_symvers=gnu
elif test $libgomp_ld_is_mold = yes ; then
enable_symvers=gnu
+ elif test $libgomp_ld_is_wild = yes ; then
+ enable_symvers=gnu
else
# The right tools, the right setup, but too old. Fallbacks?
AC_MSG_WARN(=== Linker version $libgomp_gnu_ld_version is too old for)
# does some of this, but throws away the result.
libgomp_ld_is_gold=no
libgomp_ld_is_mold=no
+ libgomp_ld_is_wild=no
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
libgomp_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
libgomp_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild'> /dev/null 2>&1; then
+ libgomp_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
enable_symvers=gnu
elif test $libgomp_ld_is_mold = yes ; then
enable_symvers=gnu
+ elif test $libgomp_ld_is_wild = yes ; then
+ enable_symvers=gnu
else
# The right tools, the right setup, but too old. Fallbacks?
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
dnl with_gnu_ld
dnl libitm_ld_is_gold (possibly)
dnl libitm_ld_is_mold (possibly)
+dnl libitm_ld_is_wild (possibly)
dnl libitm_gnu_ld_version (possibly)
dnl
dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will
# does some of this, but throws away the result.
libitm_ld_is_gold=no
libitm_ld_is_mold=no
+ libitm_ld_is_wild=no
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
libitm_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
libitm_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ libitm_ld_is_wild=yes
fi
changequote(,)
ldver=`$LD --version 2>/dev/null |
enable_symvers=gnu
elif test $libitm_ld_is_mold = yes ; then
enable_symvers=gnu
+ elif test $libitm_ld_is_wild = yes ; then
+ enable_symvers=gnu
else
# The right tools, the right setup, but too old. Fallbacks?
AC_MSG_WARN(=== Linker version $libitm_gnu_ld_version is too old for)
# does some of this, but throws away the result.
libitm_ld_is_gold=no
libitm_ld_is_mold=no
+ libitm_ld_is_wild=no
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
libitm_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
libitm_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ libitm_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
enable_symvers=gnu
elif test $libitm_ld_is_mold = yes ; then
enable_symvers=gnu
+ elif test $libitm_ld_is_wild = yes ; then
+ enable_symvers=gnu
else
# The right tools, the right setup, but too old. Fallbacks?
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
dnl with_gnu_ld
dnl glibcxx_ld_is_gold (set to "no" or "yes")
dnl glibcxx_ld_is_mold (set to "no" or "yes")
+dnl glibcxx_ld_is_wild (set to "no" or "yes")
dnl glibcxx_gnu_ld_version (possibly)
dnl
dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
AC_MSG_CHECKING([for ld version])
changequote(,)
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
: All versions of gold support symbol versioning.
elif test $glibcxx_ld_is_mold = yes ; then
: All versions of mold support symbol versioning.
+ elif test $glibcxx_ld_is_wild = yes ; then
+ : All versions of Wild support symbol versioning.
elif test $glibcxx_gnu_ld_version -lt $glibcxx_min_gnu_ld_version ; then
# The right tools, the right setup, but too old. Fallbacks?
AC_MSG_WARN(=== Linker version $glibcxx_gnu_ld_version is too old for)
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
$as_echo_n "checking for ld version... " >&6; }
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
$as_echo_n "checking for ld version... " >&6; }
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
$as_echo_n "checking for ld version... " >&6; }
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
$as_echo_n "checking for ld version... " >&6; }
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
$as_echo_n "checking for ld version... " >&6; }
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
$as_echo_n "checking for ld version... " >&6; }
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
$as_echo_n "checking for ld version... " >&6; }
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
$as_echo_n "checking for ld version... " >&6; }
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
# does some of this, but throws away the result.
glibcxx_ld_is_gold=no
glibcxx_ld_is_mold=no
+ glibcxx_ld_is_wild=no
if test x"$with_gnu_ld" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
$as_echo_n "checking for ld version... " >&6; }
glibcxx_ld_is_gold=yes
elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
glibcxx_ld_is_mold=yes
+ elif $LD --version 2>/dev/null | grep 'Wild' >/dev/null 2>&1; then
+ glibcxx_ld_is_wild=yes
fi
ldver=`$LD --version 2>/dev/null |
sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
# Set --gc-sections.
glibcxx_have_gc_sections=no
- if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
+ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" || test "$glibcxx_ld_is_wild" = "yes" ; then
if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
glibcxx_have_gc_sections=yes
fi
: All versions of gold support symbol versioning.
elif test $glibcxx_ld_is_mold = yes ; then
: All versions of mold support symbol versioning.
+ elif test $glibcxx_ld_is_wild = yes ; then
+ : All versions of Wild support symbol versioning.
elif test $glibcxx_gnu_ld_version -lt $glibcxx_min_gnu_ld_version ; then
# The right tools, the right setup, but too old. Fallbacks?
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5