Skip to content
Snippets Groups Projects
Commit ba81685d authored by Ingmar Steen's avatar Ingmar Steen
Browse files

Disable relocation addend for all targets.

Since Keystone will not be generating actual ELF files, relocation
addends prevent symbol addresses from being inlined in the output.
parent 07a29950
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment