diff options
author | Fangrui Song <i@maskray.me> | 2020-07-21 08:49:04 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-07-21 08:49:45 -0700 |
commit | 86ab98b0014662f489dbee97f7d3b8d2569e37cc (patch) | |
tree | 3498f27f1ebed1164e36499a37985dfaf49ac85f /llvm/unittests/Support/CommandLineTest.cpp | |
parent | d080635bfca25e66edd5c5dd333bbd1f8eb70a77 (diff) | |
download | llvm-86ab98b0014662f489dbee97f7d3b8d2569e37cc.zip llvm-86ab98b0014662f489dbee97f7d3b8d2569e37cc.tar.gz llvm-86ab98b0014662f489dbee97f7d3b8d2569e37cc.tar.bz2 |
[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
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions