mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-05 19:29:54 +00:00
fix a bug reid noticed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31385 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f673388351
commit
4d5c0014b6
@ -99,7 +99,7 @@ void PPCMachOWriter::GetTargetRelocation(MachineRelocation &MR,
|
|||||||
case PPC::reloc_pcrel_bx:
|
case PPC::reloc_pcrel_bx:
|
||||||
Addr -= MR.getMachineCodeOffset();
|
Addr -= MR.getMachineCodeOffset();
|
||||||
Addr >>= 2;
|
Addr >>= 2;
|
||||||
// ??? Addr & 0xFFFFFF; Possibly this was supposed to be Addr &= 0xFFFFFF ?
|
Addr &= 0xFFFFFF;
|
||||||
Addr <<= 2;
|
Addr <<= 2;
|
||||||
Addr |= (MOS.SectionData[MR.getMachineCodeOffset()] << 24);
|
Addr |= (MOS.SectionData[MR.getMachineCodeOffset()] << 24);
|
||||||
fixword(MOS.SectionData, Addr, MR.getMachineCodeOffset());
|
fixword(MOS.SectionData, Addr, MR.getMachineCodeOffset());
|
||||||
|
Loading…
Reference in New Issue
Block a user