From: Roman Divacky Date: Tue, 2 Aug 2011 16:15:32 +0000 (+0000) Subject: Comment out the PPC relocation offset adjustment. It must be done differently. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c9c0cc1e4655e3abe6ddc0329a31decfa5b3fc4b;p=oota-llvm.git Comment out the PPC relocation offset adjustment. It must be done differently. This unbreaks some tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136692 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 050d11ef3fc..d7ec3d815c2 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -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;