[MCJIT] Add a 'section_addr' builtin function to RuntimeDyldChecker.
authorLang Hames <lhames@gmail.com>
Wed, 3 Sep 2014 05:01:46 +0000 (05:01 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 3 Sep 2014 05:01:46 +0000 (05:01 +0000)
commit5ae26474052439a8ca557a7196a313fee773aa9c
tree7ccfba801d4ae778bfc01d9005679273d567b906
parentdd7a7107c16fd6ec19dae44e4e830506a8fec168
[MCJIT] Add a 'section_addr' builtin function to RuntimeDyldChecker.

The syntax of the new builtin is 'section_addr(<filename>, <section-name>)'
(similar to the stub_addr builtin, but without a symbol name). It returns the
base address of the given section in the given object file. This builtin makes
it possible to refer to the contents of sections that cannot contain symbols,
e.g. sections added by the linker itself, like __eh_frame.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217010 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCheckerImpl.h