[all-commits] [llvm/llvm-project] a93132: [llvm-objcopy][ELF] Fix removing SHT_GROUP sections.
Igor Kudrin via All-commits
all-commits at lists.llvm.org
Fri May 29 06:28:53 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a9313282cd5413ed498dceb763ebba12ea5bdecd
https://github.com/llvm/llvm-project/commit/a9313282cd5413ed498dceb763ebba12ea5bdecd
Author: Igor Kudrin <ikudrin at accesssoftek.com>
Date: 2020-05-29 (Fri, 29 May 2020)
Changed paths:
A llvm/test/tools/llvm-objcopy/ELF/remove-section-group.test
M llvm/tools/llvm-objcopy/ELF/Object.cpp
M llvm/tools/llvm-objcopy/ELF/Object.h
Log Message:
-----------
[llvm-objcopy][ELF] Fix removing SHT_GROUP sections.
When a SHT_GROUP section is removed, but other sections of the group are
kept, the SHF_GROUP flag of these sections should be dropped, otherwise
the resulting ELF file will be malformed.
Differential Revision: https://reviews.llvm.org/D80511
Commit: 5b875bf59b068f3db91c750b24030a7b2bd164aa
https://github.com/llvm/llvm-project/commit/5b875bf59b068f3db91c750b24030a7b2bd164aa
Author: Igor Kudrin <ikudrin at accesssoftek.com>
Date: 2020-05-29 (Fri, 29 May 2020)
Changed paths:
A llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test
M llvm/tools/llvm-objcopy/ELF/Object.cpp
M llvm/tools/llvm-objcopy/ELF/Object.h
Log Message:
-----------
[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
Compare: https://github.com/llvm/llvm-project/compare/99a3b20452b1...5b875bf59b06
More information about the All-commits
mailing list