Comment out the PPC relocation offset adjustment. It must be done differently.
authorRoman Divacky <rdivacky@freebsd.org>
Tue, 2 Aug 2011 16:15:32 +0000 (16:15 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Tue, 2 Aug 2011 16:15:32 +0000 (16:15 +0000)
This unbreaks some tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136692 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/ELFObjectWriter.cpp

index 050d11ef3fccf8deef4fc1a59b9b46ed02d4f9b1..d7ec3d815c28b1ac69e2bcb15ba9554164c296fb 100644 (file)
@@ -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;