summaryrefslogtreecommitdiffstats
path: root/lldb/lib
diff options
context:
space:
mode:
authorStephen Wilson <wilsons@start.ca>2011-01-16 19:45:39 +0000
committerStephen Wilson <wilsons@start.ca>2011-01-16 19:45:39 +0000
commit2103e25e19183990657339178669253148dec54f (patch)
tree384e26d886a8b80838045876fab1a6d287600005 /lldb/lib
parentec517cdf24a44bce1e4342578703c1449025d18a (diff)
downloadbcm5719-llvm-2103e25e19183990657339178669253148dec54f.tar.gz
bcm5719-llvm-2103e25e19183990657339178669253148dec54f.zip
Initial support for a DynamicLoader plugin on Linux.
This patch is enough to have shared objects recognized by LLDB. We can handle position independent executables. We can handle dynamically loaded modules brought in via dlopen. The DYLDRendezvous class provides an interface to a structure present in the address space of ELF-based processes. This structure provides the address of a function which is called by the linker each time a shared object is loaded and unloaded (thus a breakpoint at that address will let LLDB intercept such events), a list of entries describing the currently loaded shared objects, plus a few other things. On Linux, processes are brought up with an auxiliary vector on the stack. One element in this vector contains the (possibly dynamic) entry address of the process. One does not need to walk the stack to find this information as it is also available under /proc/<pid>/auxv. The new AuxVector class provides a convenient read-only view of this auxiliary vector information. We use the dynamic entry address and the address as specified in the object file to compute the actual load address of the inferior image. This strategy works for both normal executables and PIE's. llvm-svn: 123592
Diffstat (limited to 'lldb/lib')
-rw-r--r--lldb/lib/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile
index 881b23c6185..abd9c1d8328 100644
--- a/lldb/lib/Makefile
+++ b/lldb/lib/Makefile
@@ -67,7 +67,8 @@ ifeq ($(HOST_OS),Darwin)
endif
ifeq ($(HOST_OS),Linux)
- USEDLIBS += lldbPluginProcessLinux.a
+ USEDLIBS += lldbPluginProcessLinux.a \
+ lldbPluginDynamicLoaderLinux.a
endif
include $(LEVEL)/Makefile.common
OpenPOWER on IntegriCloud