Fix the alignment check.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 31 Mar 2016 12:09:36 +0000 (12:09 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 31 Mar 2016 12:09:36 +0000 (12:09 +0000)
commit66ea7bb2c187440a0ca6e50c1c52392f778a488e
tree3e24ede7f2ee6b8103482c20c9cfd98ed9bce337
parentf85a69bb6f015d48edfdd59b3da52b01f1286a06
Fix the alignment check.

We have to check the final value that is written.

I don't think this has any real word implications (unless something
supports unaligned instructions), but unblocks simplifying the handling
of PC relative relocations.

llvm-svn: 265009
lld/ELF/Target.cpp
lld/test/ELF/Inputs/mips-align-err.s [new file with mode: 0644]
lld/test/ELF/mips-align-err.s [new file with mode: 0644]