[PATCH] D49678: [llvm-objcopy] Adding support for compressed DWARF debug sections.

Puyan Lotfi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 24 16:52:31 PDT 2018


plotfi added inline comments.


================
Comment at: tools/llvm-objcopy/Object.cpp:156
+    uint64_t *DecompressedSizePtr = reinterpret_cast<uint64_t *>(Buf);
+    *DecompressedSizePtr = support::endian::read64be(&DecompressedSize);
+    Buf += sizeof(DecompressedSize);
----------------
jakehehrlich wrote:
> Do we know that this is 64-bits even on 32-bit instances?
Yes. It’s alwaya 64bit big endian as I said in earlier comments. 

https://gnu.wildebeest.org/blog/mjw/2016/01/13/elf-libelf-compressed-sections-and-elfutils/


Repository:
  rL LLVM

https://reviews.llvm.org/D49678





More information about the llvm-commits mailing list