ObjectFileELF: Add support for gnu-style compressed sections
authorPavel Labath <pavel@labath.sk>
Wed, 10 Jul 2019 16:10:43 +0000 (16:10 +0000)
committerPavel Labath <pavel@labath.sk>
Wed, 10 Jul 2019 16:10:43 +0000 (16:10 +0000)
commit0ace98c9df70200bdcd5af296f5172a49b3988e5
tree23ac9c73daba10110e7b6f178a010e56482f259e
parent58426a3707dcae151134b56688135da32f83e5bf
ObjectFileELF: Add support for gnu-style compressed sections

With this style, a compressed section is indicated by a "z" in the section
name, instead of a section header flag. This patch consists of two small tweaks:
- use an llvm Decompressor method in order to properly detect compressed sections
- make sure we recognise .zdebug_info (and friends) when classifying section types.

llvm-svn: 365654
lldb/lit/Modules/ELF/compressed-sections.yaml
lldb/lit/SymbolFile/DWARF/gnu-style-compression.cpp [new file with mode: 0644]
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp