aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
diff options
context:
space:
mode:
authorSunho Kim <ksunhokim123@gmail.com>2022-08-11 15:12:24 +0900
committerSunho Kim <ksunhokim123@gmail.com>2022-08-11 15:12:24 +0900
commit5cf0082ae3f4b281963e999fcac4b875447f2cda (patch)
tree1ccd73fc56a84c878a43aefaf087a5a91424f7e9 /llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
parent156c0754bc2ee0b7d198cfeff230374a1961ac04 (diff)
downloadllvm-5cf0082ae3f4b281963e999fcac4b875447f2cda.zip
llvm-5cf0082ae3f4b281963e999fcac4b875447f2cda.tar.gz
llvm-5cf0082ae3f4b281963e999fcac4b875447f2cda.tar.bz2
[JITLink][COFF][x86_64] Implement SECTION/SECREL relocation.
Implements SECTION/SECREL relocation. These are used by debug info (pdb) data. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D130275
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
index 5ddb35c..070118c 100644
--- a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
@@ -537,7 +537,8 @@ private:
for (auto *B : G.blocks()) {
auto &BI = BlockInfos[B];
for (auto &E : B->edges()) {
- if (E.getTarget().getScope() == Scope::Local) {
+ if (E.getTarget().getScope() == Scope::Local &&
+ !E.getTarget().isAbsolute()) {
auto &TgtB = E.getTarget().getBlock();
if (&TgtB != B) {
BI.Dependencies.insert(&TgtB);