[PATCH] gold: add --compress-debug-sections=zstd [PR 29641]
Cary Coutant
ccoutant@gmail.com
Thu Nov 10 21:46:14 GMT 2022
> gold/testsuite/Makefile.am | 5 ++++
@@ -3120,6 +3120,15 @@ gdb_index_test_2_gabi:
gdb_index_test_cdebug_gabi.o gcctestdir/ld
$(CXXLINK) -Wl,--gdb-index $<
gdb_index_test_2_gabi.stdout: gdb_index_test_2_gabi
$(TEST_READELF) --debug-dump=gdb_index $< > $@
+check_SCRIPTS += gdb_index_test_2_zstd.sh
+check_DATA += gdb_index_test_2_zstd.stdout
+MOSTLYCLEANFILES += gdb_index_test_2_zstd.stdout gdb_index_test_2_zstd
+gdb_index_test_cdebug_zstd.o: gdb_index_test.cc
+ $(CXXCOMPILE) -O0 -g -Wa,--compress-debug-sections=zstd -c -o $@ $<
+gdb_index_test_2_zstd: gdb_index_test_cdebug_zstd.o gcctestdir/ld
+ $(CXXLINK) -Wl,--gdb-index $<
+gdb_index_test_2_zstd.stdout: gdb_index_test_2_zstd
+ $(TEST_READELF) --debug-dump=gdb_index $< > $@
These new tests should be conditioned by HAVE_ZSTD, shouldn't they?
Otherwise, looks good to me.
-cary
More information about the Binutils
mailing list