PowerPC: Support PC-relative fixup_ppc_brcond14.

When testing the asm parser, I ran into an error when using a conditional
branch to an external symbol (this doesn't occur in compiler-generated
code) due to missing support in PPCELFObjectWriter::getRelocTypeInner.

llvm-svn: 180605
This commit is contained in:
Ulrich Weigand 2013-04-26 15:38:30 +00:00
parent ae81474a38
commit 72a7dc0d7d
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,
case PPC::fixup_ppc_br24:
Type = ELF::R_PPC_REL24;
break;
case PPC::fixup_ppc_brcond14:
Type = ELF::R_PPC_REL14;
break;
case FK_Data_4:
case FK_PCRel_4:
Type = ELF::R_PPC_REL32;