Set sh_addralign to 1 instead of 0.
authorRui Ueyama <ruiu@google.com>
Thu, 14 Jul 2016 05:46:24 +0000 (05:46 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 14 Jul 2016 05:46:24 +0000 (05:46 +0000)
commit3b04d833c48f4556f9df63b1dad8e8bebbc852f5
tree8125040e3d45835760440397fc78296018e47f46
parent0fad6ea551b423e22e3ff798f2fa715a3e8bb0ab
Set sh_addralign to 1 instead of 0.

ELF spec says that alignment of 0 is equivalent to 1.
Previously, we arbitrary set to 0 or 1, but always setting to 1
makes our program simpler.

llvm-svn: 275374
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/test/ELF/eh-frame-hdr.s