Liveness is usually a notion of input sections, but this patch adds
"liveness" bit to common symbols because they don't belong to any
input section.
This patch is based on https://reviews.llvm.org/D36520
Paths
| Differential D36546
Garbage-collect common symbols. ClosedPublic Authored by ruiu on Aug 9 2017, 1:16 PM.
Details Summary Liveness is usually a notion of input sections, but this patch adds This patch is based on https://reviews.llvm.org/D36520
Diff Detail
Event TimelineComment Actions LGTM, thanks !
This revision is now accepted and ready to land.Aug 10 2017, 12:44 AM Closed by commit rL310617: Garbage-collect common symbols. (authored by ruiu). · Explain WhyAug 10 2017, 8:55 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 110464 lld/ELF/MarkLive.cpp
lld/ELF/Symbols.h
lld/ELF/Symbols.cpp
lld/ELF/SyntheticSections.cpp
lld/ELF/Writer.cpp
lld/test/ELF/common-gc.s
lld/test/ELF/common-gc2.s
|
Should it be unsigned isLive: 1 ? (for consistency with flags in SymbolBody)