[llvm-dev] [LLD] Should --compress_debug_sections be enabled (=zlib) by default ?
via llvm-dev
llvm-dev at lists.llvm.org
Mon May 6 05:36:09 PDT 2019
> -----Original Message-----
> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of
> Romain GEISSLER via llvm-dev
> Sent: Friday, May 03, 2019 12:53 PM
> To: llvm-dev at lists.llvm.org
> Subject: [llvm-dev] [LLD] Should --compress_debug_sections be enabled
> (=zlib) by default ?
>
> 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.
I think we'd want a way to make this customizable for different platforms.
--paulr
>
> Cheers,
> Romain
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list