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

Jake Ehrlich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 24 17:12:31 PDT 2018


jakehehrlich 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);
----------------
plotfi wrote:
> 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/
Awesome. Acknowledged. 


Repository:
  rL LLVM

https://reviews.llvm.org/D49678





More information about the llvm-commits mailing list