Change how we handle R_MIPS_LO16.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 29 Mar 2016 18:18:19 +0000 (18:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 29 Mar 2016 18:18:19 +0000 (18:18 +0000)
commitcba3e8b4b5d471acda77cb1d5df4c158365b0788
tree51887971f32ff98f5ceeac849dd42b0bbbc22578
parentff6d0d8b2e6644c9c98650ce5a5d33b025518aa4
Change how we handle R_MIPS_LO16.

Mips aligns PT_LOAD to 16 bits (0x10000). That means that the lower 16
bits are always the same, so we can, effectively, say that the
relocation is relative.

llvm-svn: 264761
lld/ELF/Target.cpp
lld/ELF/Writer.cpp