gold: add --compress-debug-sections=zstd [PR 29641]
authorFangrui Song <maskray@google.com>
Fri, 11 Nov 2022 06:09:09 +0000 (22:09 -0800)
committerFangrui Song <i@maskray.me>
Fri, 11 Nov 2022 06:09:09 +0000 (22:09 -0800)
commit8b2d02cbb924f1f3718dc5a20f7a9dcf07739d23
treea36e40d97c9024e70eb396345c524d3777e1b6b0
parent332a4eeaea69034b8ee6f50b931ce6734b55bf08
gold: add --compress-debug-sections=zstd [PR 29641]

This option compresses output debug sections with zstd and sets ch_type
to ELFCOMPRESS_ZSTD.  Latest gdb and lldb support ELFCOMPRESS_ZSTD.

There will be an error if zstd is not enabled at configure time.

    error: --compress-debug-sections=zstd: gold is not built with zstd support
gold/NEWS
gold/compressed_output.cc
gold/options.cc
gold/options.h
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in