mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 20:34:58 +00:00
Comment out the PPC relocation offset adjustment. It must be done differently.
This unbreaks some tests. llvm-svn: 136692
This commit is contained in:
parent
ac0984dc7e
commit
c2f4208960
@ -447,6 +447,9 @@ void ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
|
|||||||
|
|
||||||
uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
|
uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
|
||||||
Fixup.getOffset();
|
Fixup.getOffset();
|
||||||
|
#if 0
|
||||||
|
// TODO: This is necessary on PPC32 but it must be implemented
|
||||||
|
// in a different way.
|
||||||
switch ((unsigned)Fixup.getKind()) {
|
switch ((unsigned)Fixup.getKind()) {
|
||||||
case PPC::fixup_ppc_ha16:
|
case PPC::fixup_ppc_ha16:
|
||||||
case PPC::fixup_ppc_lo16:
|
case PPC::fixup_ppc_lo16:
|
||||||
@ -455,6 +458,7 @@ void ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!hasRelocationAddend())
|
if (!hasRelocationAddend())
|
||||||
Addend = 0;
|
Addend = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user