Fix http://lists.llvm.org/pipermail/llvm-dev/2020-October/145908.html
Currently non-SHF_ALLOC SHT_REL[A] (due to --emit-relocs) and SHF_LINK_ORDER are not
marked live.
Paths
| Differential D89841
[ELF] --gc-sections: retain dependent sections of non-SHF_ALLOC sections ClosedPublic Authored by MaskRay on Oct 20 2020, 6:12 PM.
Details Summary Fix http://lists.llvm.org/pipermail/llvm-dev/2020-October/145908.html Currently non-SHF_ALLOC SHT_REL[A] (due to --emit-relocs) and SHF_LINK_ORDER are not
Diff Detail
Event TimelineComment Actions LGTM. If we are marking a section live it makes sense to mark its dependent sections live. This revision is now accepted and ready to land.Oct 21 2020, 3:26 AM This revision was landed with ongoing or failed builds.Oct 21 2020, 10:11 AM Closed by commit rGb6e4aae2cc26: [ELF] --gc-sections: retain dependent sections of non-SHF_ALLOC sections (authored by MaskRay). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 299734 lld/ELF/MarkLive.cpp
lld/test/ELF/gc-sections-linkorder2.s
|
nit: perhaps worth updating this comment.