Fix the implementation of R_386_GOTPC and R_386_GOTOFF.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 31 Aug 2016 23:24:11 +0000 (23:24 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 31 Aug 2016 23:24:11 +0000 (23:24 +0000)
commit79202c378f2d33e1cca457a93d7bfa22b78556a9
treee61d348e649a8df15a285608730dfd2a8464210f
parent53851923d5c9f9ebb3a4d708db0c1cab30ca1d33
Fix the implementation of R_386_GOTPC and R_386_GOTOFF.

They were both pointing to the start of the got, not the end.

Fixes pr28924.

llvm-svn: 280310
lld/ELF/InputSection.cpp
lld/ELF/Relocations.cpp
lld/ELF/Relocations.h
lld/ELF/Target.cpp
lld/test/ELF/relocation-i686.s