diff options
author | Martin Liska <mliska@suse.cz> | 2022-04-21 10:17:34 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-04-21 10:18:15 +0200 |
commit | 811c7fbd147991645e6116897f07d8a406b864e6 (patch) | |
tree | 1457cfb4bc16f19e13688a526c9d182427223c55 /gcc/configure.ac | |
parent | 504b02c70abcc31e0e9b56e69f82f85b5261bca9 (diff) | |
download | gcc-811c7fbd147991645e6116897f07d8a406b864e6.zip gcc-811c7fbd147991645e6116897f07d8a406b864e6.tar.gz gcc-811c7fbd147991645e6116897f07d8a406b864e6.tar.bz2 |
Support --compress-debug-sections for ld.mold.
gcc/ChangeLog:
* configure.ac: Enable compressed debug sections for mold
linker.
* configure: Regenerate.
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index ea67fb6..23bee70 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -6264,7 +6264,10 @@ AC_MSG_CHECKING(linker for compressed debug sections) # In binutils 2.26, gld gained support for the ELF gABI format. if test $in_tree_ld = yes ; then gcc_cv_ld_compress_debug=0 - if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \ + if test $ld_is_mold = yes; then + gcc_cv_ld_compress_debug=3 + gcc_cv_ld_compress_debug_option="--compress-debug-sections" + elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \ && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then gcc_cv_ld_compress_debug=2 gcc_cv_ld_compress_debug_option="--compress-debug-sections" @@ -6277,7 +6280,10 @@ if test $in_tree_ld = yes ; then gcc_cv_ld_compress_debug=1 fi elif echo "$ld_ver" | grep GNU > /dev/null; then - if test "$ld_vers_major" -lt 2 \ + if test $ld_is_mold = yes; then + gcc_cv_ld_compress_debug=3 + gcc_cv_ld_compress_debug_option="--compress-debug-sections" + elif test "$ld_vers_major" -lt 2 \ || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then gcc_cv_ld_compress_debug=0 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then |