summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86/arch_x86.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/x86/arch_x86.cpp b/arch/x86/arch_x86.cpp
index e19fbef0..94cf31d5 100644
--- a/arch/x86/arch_x86.cpp
+++ b/arch/x86/arch_x86.cpp
@@ -4187,14 +4187,11 @@ public:
dest32[0] = dest32[0] + target - (uint32_t)pcRelAddr;
break;
case X86_64_RELOC_UNSIGNED:
- if (!info.external)
+ switch (info.size)
{
- switch (info.size)
- {
- case 4: *dest32 += target - (uint32_t)pcRelAddr; break;
- case 8: *dest64 += info.target - pcRelAddr; break;
- default: break;
- }
+ case 4: *dest32 += target - (uint32_t)pcRelAddr; break;
+ case 8: *dest64 += info.target - pcRelAddr; break;
+ default: break;
}
// TODO rebasing
break;