Don't put ro before rx when using linker scripts.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 29 Sep 2016 22:48:55 +0000 (22:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 29 Sep 2016 22:48:55 +0000 (22:48 +0000)
commite979fd1bf0a40f3025f1c443a25a45704e9bca8f
tree734f3f82bebc6145c7b52d17b84a7b2f0c9d7b44
parent1cc007aeae3a84e18a2609200eb2d827aa811011
Don't put ro before rx when using linker scripts.

Since they end up going on the same PT_LOAD, there is no reason to
sort them. This matches bfd's behaviour and is user visible in the
placement of orphan sections.

llvm-svn: 282799
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/merge-sections.s
lld/test/ELF/linkerscript/no-space.s
lld/test/ELF/linkerscript/non-alloc.s
lld/test/ELF/linkerscript/sections-constraint.s
lld/test/ELF/linkerscript/sections-keep.s
lld/test/ELF/linkerscript/sections-sort.s
lld/test/ELF/linkerscript/sort-non-script.s
lld/test/ELF/linkerscript/va.s