mirror of
https://github.com/keystone-engine/keystone
synced 2026-06-08 15:15:30 +00:00
Merge pull request #39 from iksteen/disable-relocation-addend
Disable relocation addend for all targets.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user