[ELF] Account for R_386_TLS_LDO_32 addend
authorShoaib Meenai <smeenai@fb.com>
Mon, 24 Apr 2017 18:02:11 +0000 (18:02 +0000)
committerShoaib Meenai <smeenai@fb.com>
Mon, 24 Apr 2017 18:02:11 +0000 (18:02 +0000)
commitb573b4b04d0471af4297a296206d7bdd0cd1955b
treef4d063a44ff936f7cbb07d1925e4cae2a2de2083
parent3e02538a02ca356886fc5766caee151401068c5f
[ELF] Account for R_386_TLS_LDO_32 addend

This relocation type has an implicit addend. Account for it when
processing the relocation. Add an offset to an existing test to ensure
it gets processed correctly.

Fixes PR32634.

Differential Revision: https://reviews.llvm.org/D32336

llvm-svn: 301207
lld/ELF/Target.cpp
lld/test/ELF/tls-dynamic-i686.s