[all-commits] [llvm/llvm-project] 141c9d: [llvm-dwp] Add SHF_COMPRESSED support and remove ....

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Jul 14 16:19:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 141c9d775961576809f15e83e19a5cd1482f330b
      https://github.com/llvm/llvm-project/commit/141c9d775961576809f15e83e19a5cd1482f330b
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-07-14 (Thu, 14 Jul 2022)

  Changed paths:
    M llvm/include/llvm/Object/Decompressor.h
    M llvm/lib/DWP/DWP.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
    M llvm/lib/Object/Decompressor.cpp
    R llvm/test/tools/llvm-dwp/Inputs/compress/a.dwo
    R llvm/test/tools/llvm-dwp/Inputs/compressfail/a.dwo
    R llvm/test/tools/llvm-dwp/Inputs/compressfail/compress.dwo
    R llvm/test/tools/llvm-dwp/Inputs/compressfail/compress.o
    R llvm/test/tools/llvm-dwp/Inputs/empty_compressed_section.dwo
    M llvm/test/tools/llvm-dwp/X86/compress.test
    M llvm/test/tools/llvm-dwp/X86/compressfail.test

  Log Message:
  -----------
  [llvm-dwp] Add SHF_COMPRESSED support and remove .zdebug support

clang 14 removed -gz=zlib-gnu and ld.lld/llvm-objcopy removed .zdebug support
recently. llvm-dwp currently doesn't support SHF_COMPRESSED. Add support and
remove .zdebug support.

Simplify llvm::object::Decompressor which has no .zdebug user now.

While here, add tests for ELF32LE, ELF32BE, and ELF64BE.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D129728




More information about the All-commits mailing list