[ExecutionEngine] Add weak symbol support to RuntimeDyld
authorKeno Fischer <kfischer@college.harvard.edu>
Tue, 27 Jan 2015 20:02:31 +0000 (20:02 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Tue, 27 Jan 2015 20:02:31 +0000 (20:02 +0000)
commit811b152d85e861bb0b0aeb27a2bbb5e29214d554
tree7253018c54fdec4fc0bb0ec59564b184f64f1b19
parent99b52293c7cb9c6b3a76a07a4922a9d8c8122e6b
[ExecutionEngine] Add weak symbol support to RuntimeDyld

Support weak symbols by first looking up if there is an externally visible symbol we can find,
and only if that fails using the one in the object file we're loading.

Reviewed By: lhames
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D6950

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227228 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
unittests/ExecutionEngine/MCJIT/CMakeLists.txt
unittests/ExecutionEngine/MCJIT/MCJITTest.cpp
unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
unittests/ExecutionEngine/MCJIT/Makefile