[all-commits] [llvm/llvm-project] 86ab98: [ELF] -r: rewrite SHT_GROUP content if some member...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Jul 21 08:50:09 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 86ab98b0014662f489dbee97f7d3b8d2569e37cc
https://github.com/llvm/llvm-project/commit/86ab98b0014662f489dbee97f7d3b8d2569e37cc
Author: Fangrui Song <i at maskray.me>
Date: 2020-07-21 (Tue, 21 Jul 2020)
Changed paths:
M lld/ELF/InputSection.cpp
M lld/ELF/OutputSections.cpp
M lld/test/ELF/relocatable-comdat.s
Log Message:
-----------
[ELF] -r: rewrite SHT_GROUP content if some members are combined or discarded
* If two group members are combined, we should leave just one index in the SHT_GROUP content.
* If a group member is discarded (/DISCARD/ or upcoming -r --gc-sections combination),
we should drop its index in the SHT_GROUP content. LLD currently crashes (`getOutputSection()` is null).
Reviewed By: psmith
Differential Revision: https://reviews.llvm.org/D84129
More information about the All-commits
mailing list