[PATCH] D15750: [ELF] - R_386_GOT32 relocation calculation fix.
Rafael Ávila de Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 18 07:32:44 PST 2016
rafael accepted this revision.
rafael added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: ELF/Target.cpp:392
@@ -391,2 +391,3 @@
break;
- case R_386_GOT32:
+ case R_386_GOT32: {
+ uint64_t V = SA - Out<ELF32LE>::Got->getVA() -
----------------
In other words, it is "G + A - GOT", but GOT means the end of the GOT section.
http://reviews.llvm.org/D15750
More information about the llvm-commits
mailing list