[ELF] - Implemented --compress-debug-sections option.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 17 Apr 2017 08:58:12 +0000 (08:58 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 17 Apr 2017 08:58:12 +0000 (08:58 +0000)
commitdbf9339715c42bbec5903231ae8fa5f64bc5c877
tree68108e2f4b8e45d8063a0b8382103ffc4f82d1b0
parent27e2ff964fc3e18c27488e15dc74b44ef32d2fe0
[ELF] - Implemented --compress-debug-sections option.

Patch implements --compress-debug-sections=zlib.

In compare with D20211 (a year old patch, abandoned), it implementation
uses streaming and fully reimplemented, does not support zlib-gnu for
simplification.

This is PR32308.

Differential revision: https://reviews.llvm.org/D31941

llvm-svn: 300444
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/Writer.cpp
lld/test/ELF/compress-debug-output.s [new file with mode: 0644]