[LLD][ELF] - Do not forget to use ch_addralign field after decompressing the sections.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 22 Apr 2019 13:40:42 +0000 (13:40 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 22 Apr 2019 13:40:42 +0000 (13:40 +0000)
commit3275742898afb2fb0c9adbbcc500d321a20fbe48
treeb826201ff9ad105da03ae0a48481d2f4f55be260
parentd6989daae9154f9d9ff89231c98e5145147da9f4
[LLD][ELF] - Do not forget to use ch_addralign field after decompressing the sections.

LLD did not use ELF::Chdr::ch_addralign for decompressed sections.
This resulted in a broken output.

Fixes https://bugs.llvm.org/show_bug.cgi?id=40482.

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

llvm-svn: 358885
lld/ELF/InputSection.cpp
lld/test/ELF/compressed-input-alignment.test [new file with mode: 0644]