[PATCH] RuntimeDyldElf: Add (trivial) support for R_X86_64_NONE, it's a no-op
Will Dietz via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 21 07:28:17 PDT 2016
Patch attached and reproduced below inline:
----------------------
>From 91f56e48e0d267c8647410652be57dd7ab69200b Mon Sep 17 00:00:00 2001
From: Will Dietz <w at wdtz.org>
Date: Wed, 27 Jul 2016 07:20:37 -0500
Subject: [PATCH] RuntimeDyldELF: Don't abort on R_X86_64_NONE, they're
no-ops.
---
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index 9cbdb13..ec8fe3a 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -231,6 +231,8 @@ void RuntimeDyldELF::resolveX86_64Relocation(const
SectionEntry &Section,
default:
llvm_unreachable("Relocation type not implemented yet!");
break;
+ case ELF::R_X86_64_NONE:
+ break;
case ELF::R_X86_64_64: {
support::ulittle64_t::ref(Section.getAddressWithOffset(Offset)) =
Value + Addend;
--
1.7.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160921/ba350101/attachment.html>
More information about the llvm-commits
mailing list