Bring r264761 back with an extra fix.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 1 Apr 2016 17:00:36 +0000 (17:00 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 1 Apr 2016 17:00:36 +0000 (17:00 +0000)
commit790db9c458df76e40e6eeabc79a131ac545312df
treeba62288bddc7420d068aec48cc8555b2685d09bd
parent8e8fe859e059ce0d0704596c5c6a7ab02f39c5ee
Bring r264761 back with an extra fix.

The extra fix is to note that it still requires copy relocations.

Original message:

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.

P.S.: Suggestions for a better name for the predicate are welcome :-)

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