Be less aggressive at relaxing got access in this case.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Oct 2016 17:28:56 +0000 (17:28 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 27 Oct 2016 17:28:56 +0000 (17:28 +0000)
commitd598c8103a66823ed076b52320e1389a561c82b1
tree2dd05033cd7b6d732dc9abc3bccc75558da2b25b
parent1878da43ea929093e9b843f375fe106b9323d4f5
Be less aggressive at relaxing got access in this case.

This fixes pr30803 by not relaxing that particular access. We could
also let adjustRelaxExpr know that the target is absolute so that it
uses R_RELAX_GOT_PC_NOPIC, but it is not clear if it is worth it.

llvm-svn: 285317
lld/ELF/Relocations.cpp
lld/test/ELF/x86-64-relax-got-abs.s [new file with mode: 0644]