aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
diff options
context:
space:
mode:
authorAmara Emerson <amara.emerson@arm.com>2012-11-16 11:11:59 +0000
committerAmara Emerson <amara.emerson@arm.com>2012-11-16 11:11:59 +0000
commit098d6d57346322c7f71f4e3e45bbea81039386c4 (patch)
treea13f66541af9a211395cff8c3148ad76fbd34daa /lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
parentfbeb956876573ae9ec6ddd190eb37e9174489c79 (diff)
downloadexternal_llvm-098d6d57346322c7f71f4e3e45bbea81039386c4.zip
external_llvm-098d6d57346322c7f71f4e3e45bbea81039386c4.tar.gz
external_llvm-098d6d57346322c7f71f4e3e45bbea81039386c4.tar.bz2
Add R_ARM_TARGET1 relocation to MCJIT and ensure that the runtime dyld reads
all symbols during object loading, not just global ones. This fixes JIT execution of code using llvm.global_ctors with internal linkage constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index 4118e8a..e6e1bdc 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@ -125,9 +125,7 @@ ObjectImage *RuntimeDyldImpl::loadObject(ObjectBuffer *InputBuffer) {
<< " flags: " << flags
<< " SID: " << SectionID
<< " Offset: " << format("%p", SectOffset));
- bool isGlobal = flags & SymbolRef::SF_Global;
- if (isGlobal)
- GlobalSymbolTable[Name] = SymbolLoc(SectionID, SectOffset);
+ GlobalSymbolTable[Name] = SymbolLoc(SectionID, SectOffset);
}
}
DEBUG(dbgs() << "\tType: " << SymType << " Name: " << Name << "\n");