[all-commits] [llvm/llvm-project] 45ae55: [llvm-objcopy] Remove support for legacy .zdebug s...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 29 10:43:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45ae553109af8e1e71ae5ddf3d92fc1bf531aea1
      https://github.com/llvm/llvm-project/commit/45ae553109af8e1e71ae5ddf3d92fc1bf531aea1
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-06-29 (Wed, 29 Jun 2022)

  Changed paths:
    M llvm/docs/ReleaseNotes.rst
    M llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
    M llvm/lib/ObjCopy/ELF/ELFObject.cpp
    M llvm/lib/ObjCopy/ELF/ELFObject.h
    R llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections-default-gnu.test
    M llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections-groups.test
    M llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections-invalid-format.test
    M llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections-symbols.test
    R llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test
    M llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-debug.test
    A llvm/test/tools/llvm-objcopy/ELF/zdebug.yaml
    M llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
    M llvm/tools/llvm-objcopy/ObjcopyOpts.td

  Log Message:
  -----------
  [llvm-objcopy] Remove support for legacy .zdebug sections

clang 14 removed -gz=zlib-gnu support and ld.lld removed linker input support
for zlib-gnu in D126793. Now let's remove zlib-gnu from llvm-objcopy.

* .zdebug* sections are no longer recognized as debug sections. --strip* don't remove them.
  They are copied like other opaque sections
* --decompress-debug-sections does not uncompress .zdebug* sections
* --compress-debug-sections=zlib-gnu is not supported

It is very rare but in case a user has object files using .zdebug . They can use
llvm-objcopy<15 or GNU objcopy for uncompression.
--compress-debug-sections=zlib-gnu is unlikely ever used by anyone, so I do not
add a custom diagnostic.

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




More information about the All-commits mailing list