Handle 16 bit PC relative relocations.

Fixes pr23771.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-06-06 02:29:56 +00:00
parent 4fb638b527
commit dcb11d3206
2 changed files with 6 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ static X86_64RelType getType64(unsigned Kind,
case X86::reloc_riprel_4byte:
case X86::reloc_riprel_4byte_movq_load:
return RT64_32;
case FK_PCRel_2:
case FK_Data_2:
return RT64_16;
case FK_PCRel_1: