This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Mark symbols referenced from linker script as live
ClosedPublic

Authored by phosek on Jun 13 2017, 11:45 PM.

Details

Summary

This is necessary to ensure that sections containing symbols referenced
from linker scripts (e.g. in data commands) don't get GC'd.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Jun 13 2017, 11:45 PM
ruiu accepted this revision.Jun 14 2017, 5:14 PM

LGTM

test/ELF/linkerscript/data-commands-gc.s
3–9 ↗(On Diff #102488)

Can you write this in one line?

This revision is now accepted and ready to land.Jun 14 2017, 5:14 PM
phosek updated this revision to Diff 102639.Jun 14 2017, 10:34 PM
phosek marked an inline comment as done.
This revision was automatically updated to reflect the committed changes.