Don't error if we can't put the header in a PT_LOAD.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 29 Sep 2016 18:50:34 +0000 (18:50 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 29 Sep 2016 18:50:34 +0000 (18:50 +0000)
commit6d91fce526ee8e36fa24d95dfc0fc379d3662939
tree9f45e4109bb282547cc2bb790bc7ad15a1541a75
parent6bb5498a4a6f86042089c90675657afa86f3948d
Don't error if we can't put the header in a PT_LOAD.

If there is not sufficient address space, just give up and don't put
the header in the PT_LOAD.

This matches bfd behaviour and I found at least one script that
depends on having a section at address 0.

llvm-svn: 282750
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/no-space.s