This is an archive of the discontinued LLVM Phabricator instance.

Add Gold plugin LTO support for pagerando
Needs ReviewPublic

Authored by rinon on Sep 7 2017, 12:24 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Pagerando bins need to be assigned to unique segments and marked with a flag to
designate the segment as pagerando-compatible. This patch adds support to the
gold plugin to assign pagerando bin sections to unique PF_RAND_ADDR flagged
segments.

This patch depends on gold to allow plugins to assign sections from plugin-generated
files to unique segments. This feature was added to gold in commit
c4e648430f3c5c135310f87280d45dba581aaa7b on 2017-12-11.

This patch set (D37580, D37581, D37582, D37583, D37584, D37585, D37586, D37587)
is a first draft of the pagerando implementation described in
http://lists.llvm.org/pipermail/llvm-dev/2017-June/113794.html.

Event Timeline

rinon created this revision.Sep 7 2017, 12:24 PM
rinon updated this revision to Diff 122940.Nov 14 2017, 4:01 PM

Fix use-after-free of segment name when assigning to unique segments

rinon edited the summary of this revision. (Show Details)Nov 14 2017, 4:02 PM
rinon edited the summary of this revision. (Show Details)Dec 12 2017, 10:59 AM
rinon updated this revision to Diff 140721.Apr 2 2018, 5:59 PM
  • Update after pagerando binning refactoring