OSDN Git Service

[llvm-objcopy][ELF] Fix removing a group member.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 29 May 2020 12:28:37 +0000 (19:28 +0700)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 29 May 2020 13:24:53 +0000 (20:24 +0700)
commit5b875bf59b068f3db91c750b24030a7b2bd164aa
tree95732ce165972d518cffb7353a9b0ec43c3e4c28
parenta9313282cd5413ed498dceb763ebba12ea5bdecd
[llvm-objcopy][ELF] Fix removing a group member.

When a group member is removed, the corresponding record in the
SHT_GROUP section has to be deleted.

This fixes PR46064.

Differential Revision: https://reviews.llvm.org/D80568
llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/ELF/Object.cpp
llvm/tools/llvm-objcopy/ELF/Object.h