[all-commits] [llvm/llvm-project] 359c64: [llvm-objcopy] Remove empty SHT_GROUP sections (#9...

Dmitriy Chestnykh via All-commits all-commits at lists.llvm.org
Mon Jul 8 11:50:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 359c64f314ad568e78ee9a3723260286e3425c2d
      https://github.com/llvm/llvm-project/commit/359c64f314ad568e78ee9a3723260286e3425c2d
  Author: Dmitriy Chestnykh <dm.chestnykh at gmail.com>
  Date:   2024-07-08 (Mon, 08 Jul 2024)

  Changed paths:
    M llvm/lib/ObjCopy/ELF/ELFObject.cpp
    M llvm/lib/ObjCopy/ELF/ELFObject.h
    M llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test

  Log Message:
  -----------
  [llvm-objcopy] Remove empty SHT_GROUP sections (#97141)

Currently `llvm-objcopy/llvm-strip` in `--strip-debug` mode doesn't
remove such sections. This behavior can lead to incompatibilities with
GNU binutils (for examples ld.bfd before https://sourceware.org/PR20520
cannot process the object file contains empty .group section).
The ELF object that contains group section with `.debug_*` sections
inside can be obtained by `gcc -g3`.
Fix #97139



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list