[llvm-commits] [llvm] r112203 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Aug 26 11:12:04 PDT 2010
Author: d0k
Date: Thu Aug 26 13:12:04 2010
New Revision: 112203
URL: http://llvm.org/viewvc/llvm-project?rev=112203&view=rev
Log:
MCELF: Fix a thinko of mine.
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=112203&r1=112202&r2=112203&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Thu Aug 26 13:12:04 2010
@@ -480,7 +480,8 @@
Value += Layout.getSymbolAddress(&SD) - Layout.getSymbolAddress(Base);
Addend = Value;
// Compensate for the addend on i386.
- FixedValue = Is64Bit ? 0 : Value;
+ if (Is64Bit)
+ Value = 0;
} else {
if (F) {
// Index of the section in .symtab against this symbol
@@ -495,6 +496,7 @@
return;
}
}
+ FixedValue = Value;
}
// determine the type of the relocation
More information about the llvm-commits
mailing list