Don't move orphan sections past assignments.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 22 Sep 2016 18:05:49 +0000 (18:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 22 Sep 2016 18:05:49 +0000 (18:05 +0000)
commit15c579518dee3425921bacef5acd17a34a71f772
tree4a99e243c74a2670567bdf4cbbcbe7d36f5edd03
parent5edef42e7f2b2fe7070e59b1540e8b7c2eca3e27
Don't move orphan sections past assignments.

This fixes a case where we would produce an unaligned PT_LOAD.

llvm-svn: 282180
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/orphan-align.s [new file with mode: 0644]