Don't put an orphan before the first . assignment.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 27 Nov 2016 07:39:45 +0000 (07:39 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 27 Nov 2016 07:39:45 +0000 (07:39 +0000)
commit7fe4ec9b3a3094b118853bf6c165fb13ca0bfb9f
tree6743b07d4e415a073a88aee1ebea6054f44efbcf
parent2f5cb60b07ea9f5eb0d09640621aad70f14bafce
Don't put an orphan before the first . assignment.

This is an horrible special case, but seems to match bfd's behaviour
and is important for avoiding placing an orphan section before the
expected start of the file.

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