[ELF] Refactor ELFCOMPRESS_ZLIB handling and improve diagnostics
authorFangrui Song <i@maskray.me>
Fri, 8 Jul 2022 21:04:19 +0000 (14:04 -0700)
committerFangrui Song <i@maskray.me>
Fri, 8 Jul 2022 21:04:19 +0000 (14:04 -0700)
commitdd74d3117de0fd96383beeb4b4b913efcb9f4328
treee96d1c56669bda0b6b5219c7297ee9a7b28e15c5
parent73e68266d9949bd091b3ac4545a79cb4eb97357f
[ELF] Refactor ELFCOMPRESS_ZLIB handling and improve diagnostics

And add some tests.
lld/ELF/InputSection.cpp
lld/test/ELF/compressed-debug-input-err.s [deleted file]
lld/test/ELF/compressed-input-err-zlib.s [new file with mode: 0644]
lld/test/ELF/compressed-input-err.s [new file with mode: 0644]