This is an archive of the discontinued LLVM Phabricator instance.

ELF: Introduce a separate bit for tracking whether an output section has ever had an input section added to it. NFCI.
ClosedPublic

Authored by pcc on May 23 2019, 2:43 PM.

Details

Summary

We currently (ab)use the Live bit on output sections to track whether
the section has ever had an input section added to it, and then later
use it during orphan placement. This will conflict with one of my upcoming
partition-related changes that will assign all output sections to a partition
(thus marking them as live) so that they can be added to the correct segment
by the code that creates program headers.

Instead of using the Live bit for this purpose, create a new flag and
start using it to track the property explicitly.

Depends on D60353

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.May 23 2019, 2:43 PM
Herald added a project: Restricted Project. · View Herald Transcript
grimar accepted this revision.May 24 2019, 2:01 AM

For me - looks good.

This revision is now accepted and ready to land.May 24 2019, 2:01 AM
MaskRay accepted this revision.May 24 2019, 2:05 AM
ruiu accepted this revision.May 24 2019, 5:51 AM

LGTM

This revision was automatically updated to reflect the committed changes.