From: Chris Lattner Date: Thu, 2 Nov 2006 23:39:53 +0000 (+0000) Subject: fix a bug reid noticed X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4d5c0014b6e1e820e50e306b9306ceb0a133ee0c;p=oota-llvm.git fix a bug reid noticed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31385 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCMachOWriter.cpp b/lib/Target/PowerPC/PPCMachOWriter.cpp index 59068e1cbb8..79149682a10 100644 --- a/lib/Target/PowerPC/PPCMachOWriter.cpp +++ b/lib/Target/PowerPC/PPCMachOWriter.cpp @@ -99,7 +99,7 @@ void PPCMachOWriter::GetTargetRelocation(MachineRelocation &MR, case PPC::reloc_pcrel_bx: Addr -= MR.getMachineCodeOffset(); Addr >>= 2; - // ??? Addr & 0xFFFFFF; Possibly this was supposed to be Addr &= 0xFFFFFF ? + Addr &= 0xFFFFFF; Addr <<= 2; Addr |= (MOS.SectionData[MR.getMachineCodeOffset()] << 24); fixword(MOS.SectionData, Addr, MR.getMachineCodeOffset());