This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Linkerscript: implemented SORT_BY_INIT_PRIORITY.
ClosedPublic

Authored by grimar on Sep 15 2016, 7:18 AM.

Details

Summary

This is PR30386,

SORT_BY_INIT_PRIORITY is a keyword can be used to sort sections by numerical value of the
GCC init_priority attribute encoded in the section name.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 71502.Sep 15 2016, 7:18 AM
grimar retitled this revision from to [ELF] - Linkerscript: implemented SORT_BY_INIT_PRIORITY..
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
ruiu accepted this revision.Sep 15 2016, 10:45 AM
ruiu edited edge metadata.

LGTM with a few nits.

ELF/LinkerScript.cpp
113 ↗(On Diff #71502)

comparePriority

977 ↗(On Diff #71502)

SortByPriority

test/ELF/linkerscript/sort-init.s
25 ↗(On Diff #71502)

Remove trailing blank line.

This revision is now accepted and ready to land.Sep 15 2016, 10:45 AM
This revision was automatically updated to reflect the committed changes.
grimar marked 3 inline comments as done.