diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2011-08-02 16:15:32 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2011-08-02 16:15:32 +0000 |
commit | c9c0cc1e4655e3abe6ddc0329a31decfa5b3fc4b (patch) | |
tree | 4aad1b7ee4884fd62c5497bbcb9112e98a3433b1 /lib/MC | |
parent | ac5f13fe3f4b79fa188d407dc97de9c9f8fdf368 (diff) | |
download | external_llvm-c9c0cc1e4655e3abe6ddc0329a31decfa5b3fc4b.zip external_llvm-c9c0cc1e4655e3abe6ddc0329a31decfa5b3fc4b.tar.gz external_llvm-c9c0cc1e4655e3abe6ddc0329a31decfa5b3fc4b.tar.bz2 |
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
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/ELFObjectWriter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 050d11e..d7ec3d8 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; |