[ELF] - Linkerscript: implemented SORT_BY_INIT_PRIORITY.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 15 Sep 2016 19:15:12 +0000 (19:15 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 15 Sep 2016 19:15:12 +0000 (19:15 +0000)
commit575208cabda163438ec6223bf0509b42c6e2b853
tree3d7fe0804daf473b9c97bc0d6f7fa3eb6057e9aa
parenta0601a40f78ee4dd176c3cb3f078f52265f360a9
[ELF] - Linkerscript: implemented SORT_BY_INIT_PRIORITY.

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.

Differential revision: https://reviews.llvm.org/D24611

llvm-svn: 281646
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/ELF/OutputSections.cpp
lld/ELF/Strings.cpp
lld/ELF/Strings.h
lld/test/ELF/linkerscript/sort-init.s [new file with mode: 0644]