Merge pull request #39 from iksteen/disable-relocation-addend

Disable relocation addend for all targets.
This commit is contained in:
Nguyen Anh Quynh
2016-05-10 10:39:58 +08:00
+3 -1
View File
@@ -126,7 +126,9 @@ class ELFObjectWriter : public MCObjectWriter {
// TargetObjectWriter wrappers.
bool is64Bit() const { return TargetObjectWriter->is64Bit(); }
bool hasRelocationAddend() const {
return TargetObjectWriter->hasRelocationAddend();
// Keystone doesn't want relocation addends.
/* return TargetObjectWriter->hasRelocationAddend(); */
return false;
}
unsigned getRelocType(MCContext &Ctx, const MCValue &Target,
const MCFixup &Fixup, bool IsPCRel) const {