fixes extra bytes that zlib is "ok" with but zstd detects and errors on when decompressing
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
- fix extra bytes when compressing for 32bit objcopy
- fix lldb compressed section zstd test File Size
Comment Actions
See test/tools/llvm-objcopy/ELF/compress-debug-sections-zstd.test. Use a similar file for ELFCLASS32 which runs llvm-objcopy --compress-debug-sections=zstd then llvm-objcopy --decompress-debug-sections. Then compare the output with the original with just one llvm-objcopy run.
llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp | ||
---|---|---|
509 | This is incorrect. Config.OutputArch is usually unset (-O). We need a field in Object and initialize it in llvm/lib/ObjCopy/ELF/ELFObject.cpp:1883 |
This is incorrect. Config.OutputArch is usually unset (-O).
We need a field in Object and initialize it in llvm/lib/ObjCopy/ELF/ELFObject.cpp:1883