Start linker scripts at 0.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 30 Sep 2016 00:16:11 +0000 (00:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 30 Sep 2016 00:16:11 +0000 (00:16 +0000)
commitbe6073345e68981bcb6ea73c464b5065934cdb0a
tree49c4164e2dc822b5143eeb2994267be57329adba
parent4b36e0c4096ec6685c9ec8acc2b59ddd3ff0cd39
Start linker scripts at 0.

We were implicitly creating space for the headers. That is not the
behaviour of bfd, which requires the script to use SIZEOF_HEADERS. The
difference is important for scripts that don't use SIZEOF_HEADERS and
expect the first section to be at 0.

llvm-svn: 282818
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/no-space.s
lld/test/ELF/linkerscript/va.s