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
5ada908140
commit
11a044634a
|
@ -447,6 +447,9 @@ void ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
|
|||
|
||||
uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
|
||||
Fixup.getOffset();
|
||||
#if 0
|
||||
// TODO: This is necessary on PPC32 but it must be implemented
|
||||
// in a different way.
|
||||
switch ((unsigned)Fixup.getKind()) {
|
||||
case PPC::fixup_ppc_ha16:
|
||||
case PPC::fixup_ppc_lo16:
|
||||
|
@ -455,6 +458,7 @@ void ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
|
|||
default:
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!hasRelocationAddend())
|
||||
Addend = 0;
|
||||
|
|
Loading…
Reference in New Issue