projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac5f13f
)
Comment out the PPC relocation offset adjustment. It must be done differently.
author
Roman Divacky
<rdivacky@freebsd.org>
Tue, 2 Aug 2011 16:15:32 +0000
(16:15 +0000)
committer
Roman 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
patch
|
blob
|
history
diff --git
a/lib/MC/ELFObjectWriter.cpp
b/lib/MC/ELFObjectWriter.cpp
index 050d11ef3fccf8deef4fc1a59b9b46ed02d4f9b1..d7ec3d815c28b1ac69e2bcb15ba9554164c296fb 100644
(file)
--- 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;