llvm-project/llvm/lib/ObjCopy
Fangrui Song c997fe6586 [llvm-objcopy] --compress-debug-sections: remove tail padding for ELFCLASS32
For an ELFCLASS32 object, a compressed section due to --compress-debug-sections={zlib,zstd} has a
tail padding of 12 zero bytes. zlib happily allows this while zstd is rigid and
reports `error: '{{.*}}': failed to decompress section '.debug_foo': Src size is incorrect`.

Cole Kissane reported the problem.

Reviewed By: jhenderson, phosek

Differential Revision: https://reviews.llvm.org/D134385
2022-09-22 10:26:47 -07:00
..
COFF [objcopy] Refactor CommonConfig to add posibility to specify added/updated sections as MemoryBuffer. 2022-03-01 14:49:41 +03:00
ELF [llvm-objcopy] --compress-debug-sections: remove tail padding for ELFCLASS32 2022-09-22 10:26:47 -07:00
MachO [llvm] Use range-based for loops (NFC) 2022-08-28 17:35:04 -07:00
XCOFF [llvm-objcopy] Initial XCOFF32 support. 2022-02-28 04:59:46 -05:00
wasm [WebAssembly] Add WASM_SEC_LAST_KNOWN to BinaryFormat section types list [NFC] 2022-06-07 12:05:23 -07:00
Archive.cpp [Object] Fix updating darwin archives 2022-05-19 10:56:26 -07:00
Archive.h
CMakeLists.txt [objcopy][NFC] Move NameOrPattern::create() into CommonConfig.h 2022-03-09 13:03:28 +03:00
CommonConfig.cpp [objcopy][NFC] Move NameOrPattern::create() into CommonConfig.h 2022-03-09 13:03:28 +03:00
ConfigManager.cpp [llvm-objcopy][ELF] Add --set-section-type 2022-07-13 10:04:21 -07:00
ObjCopy.cpp [llvm-objcopy] Initial XCOFF32 support. 2022-02-28 04:59:46 -05:00