[Lldb-commits] [PATCH] D45628: [LLDB] Support compressed debug info sections (.zdebug*)
David Blaikie via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 13 14:13:42 PDT 2018
dblaikie added a comment.
In https://reviews.llvm.org/D45628#1067375, @aprantl wrote:
> Which compilers / platforms generate / support this? Is this an ELF-only feature?
Clang/LLVM do (-Wa,--compress-debug-sections). Yeah, it's ELF only so far as I know. There's a couple of variations (-compress-debug-sections=zlib or zlib-gnu) the ".zdebug_foo" is zlib-gnu style, but a more modern variant (zlib) uses a section attribute SHF_COMPRESSED instead of the name mangling.
In https://reviews.llvm.org/D45628#1067382, @clayborg wrote:
> If this is for current and future debugging, it would be nice to change the tool to just use the normal .debug prefixes and just specify SHF_COMPRESSED???
At least for now, zlib-gnu style is used at Google - I don't actually know what it'd cost to switch to the more modern zlib (using SHF_COMPRESSED) style. No doubt there are a variety of tools that may not have been updated/improved to support the new format - hard to say.
More information about the lldb-commits