[PATCH] D126793: [ELF] Remove support for legacy .zdebug sections

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 10:02:47 PDT 2022


MaskRay created this revision.
MaskRay added a reviewer: peter.smith.
Herald added subscribers: StephenFan, arichardson, emaste.
Herald added a reviewer: ctetreau.
Herald added a reviewer: ctetreau.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

.zdebug is unlikely used any longer: gcc -gz switched from legacy
.zdebug to SHF_COMPRESSED with binutils 2.26 (2016), which has been
several years. clang 14 dropped -gz=zlib-gnu support. According to
Debian Code Search (`gz=zlib-gnu`), no project uses -gz=zlib-gnu.

Remove .zdebug support to (a) simplify code and (b) allow removal of llvm-mc's
--compress-debug-sections=zlib-gnu.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126793

Files:
  lld/ELF/InputSection.cpp
  lld/ELF/InputSection.h
  lld/docs/ReleaseNotes.rst
  lld/test/ELF/compressed-debug-input.s
  lld/test/ELF/relocatable-compressed-input.s
  lld/test/ELF/strip-debug.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126793.433442.patch
Type: text/x-patch
Size: 6417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220601/356af8be/attachment.bin>


More information about the llvm-commits mailing list