[llvm-dev] [LLD] Should --compress_debug_sections be enabled (=zlib) by default ?
Romain GEISSLER via llvm-dev
llvm-dev at lists.llvm.org
Fri May 3 09:52:48 PDT 2019
Hi,
In the file lld/ELF/Driver.cpp in function getCompressDebugSections we can see that the current default for lld is no debug section compression. It looks like tools like gdb, valgrind, elfutils, gcc's backtrace lib currently support compressed symbols. Since perf can use libdw from elfutils, I guess it supports it too.
Do you think it's time to enable compressed debug section by default ? On some of my big binaries (several hundreds of MB) this could save 50% of the overall binary size.
Cheers,
Romain
More information about the llvm-dev
mailing list