[llvm] r180605 - PowerPC: Support PC-relative fixup_ppc_brcond14.
Ulrich Weigand
ulrich.weigand at de.ibm.com
Fri Apr 26 08:38:31 PDT 2013
Author: uweigand
Date: Fri Apr 26 10:38:30 2013
New Revision: 180605
URL: http://llvm.org/viewvc/llvm-project?rev=180605&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
Modified: llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp?rev=180605&r1=180604&r2=180605&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp Fri Apr 26 10:38:30 2013
@@ -77,6 +77,9 @@ unsigned PPCELFObjectWriter::getRelocTyp
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;
More information about the llvm-commits
mailing list