llvm-project/llvm/lib/ExecutionEngine
Yonghong Song 61bc1d7ed5 [RuntimeDyld] load all sections with ProcessAllSections
This patch tried to address the following use case.
  . bcc (https://github.com/iovisor/bcc) utilizes llvm JIT to
    compile for BTF target.
  . with -g, .BTF and .BTF.ext sections (BPF debug info)
    will be generated by LLVM.
  . .BTF does not have relocations and .BTF.ext has some
    relocations.
  . With ProcessAllSections, .BTF.ext is loaded by JIT dynamic linker
    and is available to application. But .BTF is not loaded.

The bcc application needs both .BTF.ext and .BTF for debugging
purpose, and .BTF is not loaded. This patch addressed this issue
by iterating over all sections and loading any missing
sections, after symbol/relocation processing in loadObjectImpl().

Signed-off-by: Yonghong Song <yhs@fb.com>

Differential Revision: https://reviews.llvm.org/D55943

llvm-svn: 352432
2019-01-28 21:35:23 +00:00
..
IntelJITEvents Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Interpreter Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MCJIT Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OProfileJIT Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Orc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PerfJITEvents Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RuntimeDyld [RuntimeDyld] load all sections with ProcessAllSections 2019-01-28 21:35:23 +00:00
CMakeLists.txt Add PerfJITEventListener for perf profiling support. 2018-07-24 00:54:06 +00:00
ExecutionEngine.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExecutionEngineBindings.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
GDBRegistrationListener.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SectionMemoryManager.cpp MemoryBlock: Do not automatically extend a given size to a multiple of page size. 2019-01-23 02:03:26 +00:00
TargetSelect.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00