[ELF] - R_386_GOTOFF relocation implemented.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 21 Dec 2015 10:00:12 +0000 (10:00 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 21 Dec 2015 10:00:12 +0000 (10:00 +0000)
commitbfb7bf742959537f47cb569b7d42f83be3e02bd6
tree2d0ffcb71c586056d12e22b62badb37881780cda
parentc6ff9c349d8f2992ca27dfe82750ec251b44f52f
[ELF] - R_386_GOTOFF relocation implemented.

R_386_GOTOFF is calculated as S + A - GOT, where:
S - Represents the value of the symbol whose index resides in the relocation entry.
A - Represents the addend used to compute the value of the relocatable field.
GOT - Represents the address of the global offset table.

Differential revision: http://reviews.llvm.org/D15383

llvm-svn: 256143
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/Target.cpp
lld/ELF/Target.h
lld/ELF/Writer.cpp
lld/test/ELF/got-i386.s [new file with mode: 0644]