From 0ee4eae0a56ecbf949c0661058483b40e81a3d84 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 5 Apr 2018 17:43:15 -0400 Subject: Do pc and base relative relocations explicitly --- binaryninjacore.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binaryninjacore.h b/binaryninjacore.h index b568bb75..47f95700 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -1119,7 +1119,8 @@ extern "C" struct BNRelocationInfo { BNRelocationType bnType; // BinaryNinja Relocation Type - BNRelativeRelocationType relative; // Relative to base/symbol or Absolute + bool pcRelative; // PC Relative or Absolute (subtract address from relocation) + bool baseRelative; // Relative to start of module (Add module base to relocation) bool hasSign; // Addend should be subtracted size_t size; // Size of the data to be written size_t truncateSize; // After addition/subtraction truncate to -- cgit v1.3.1