[PATCH] gold: add --compress-debug-sections=zstd [PR 29641]
Cary Coutant
ccoutant@gmail.com
Thu Nov 10 22:00:20 GMT 2022
> gold/NEWS | 2 ++
> gold/compressed_output.cc | 59 +++++++++++++++++++++++++++++---------
> gold/options.cc | 9 ++++++
> gold/options.h | 4 +--
> gold/testsuite/Makefile.am | 5 ++++
> gold/testsuite/Makefile.in | 27 +++++++++++++++++
> 6 files changed, 90 insertions(+), 16 deletions(-)
@@ -317,7 +348,7 @@ Output_compressed_section::set_final_data_size()
gold_assert(this->data_ == NULL);
this->set_data_size(uncompressed_size);
}
-}
+ }
The indentation here was correct before.
+check_PROGRAMS += flagstest_compress_debug_sections_zstd
+flagstest_compress_debug_sections_zstd: flagstest_debug.o gcctestdir/ld
+ $(CXXLINK) -o $@ $< -Wl,--compress-debug-sections=zstd
+ test -s $@
+
Please condition this new test on HAVE_ZSTD.
Thanks!
-cary
More information about the Binutils
mailing list