[ELF] - Linkerscript: Fixed SORT_BY_ALIGNMENT sorting order.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 4 Aug 2016 08:56:17 +0000 (08:56 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 4 Aug 2016 08:56:17 +0000 (08:56 +0000)
commit9e5386ceae655ac104cd0f3a9233cefa20b3fa36
tree2cbce21586dd93ced2a8c1363f8d39363013e88b
parentb32733423f0dd5932a7a2e6dba12cd510c0c6ed7
[ELF] - Linkerscript: Fixed SORT_BY_ALIGNMENT sorting order.

According to spec:
"SORT_BY_ALIGNMENT will sort sections into descending order by
alignment before placing them in the output file"

Previously they were sorted into ascending order.

llvm-svn: 277706
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/linkerscript-sort-nested.s
lld/test/ELF/linkerscript/linkerscript-sort.s