summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorStephen Wilson <wilsons@start.ca>2011-01-14 21:08:59 +0000
committerStephen Wilson <wilsons@start.ca>2011-01-14 21:08:59 +0000
commitc6c7ca58e4ce298c4f1a9cfa192af3c2ad49a5c6 (patch)
tree02789c3f6469e4fdadf471568c5499222643066a /llvm/lib/CodeGen
parent0b8dab726b38bfe531345dc6596f8ac9b1f21274 (diff)
downloadbcm5719-llvm-c6c7ca58e4ce298c4f1a9cfa192af3c2ad49a5c6.tar.gz
bcm5719-llvm-c6c7ca58e4ce298c4f1a9cfa192af3c2ad49a5c6.zip
Extend the ObjectFile interface to support dynamic loading on ELF platforms.
Debuggers on ELF platforms hook into the runtime linker by monitoring a special "rendezvous" embedded in the address space of the inferior process. The exact location of this structure is filled in by the runtime linker and can be resolved by locating the DT_DEBUG entry in the processes .dynamic section. The new GetImageInfoAddress() method (morally equivalent to Process::GetImageInfoAddress) provides the mechanism to locate this information. GetEntryPoint() simply returns the address of the start symbol in the executable if present. It is useful to the dynamic loader plugin for ELF systems as this is the earliest point where LLDB can break and probe the inferiors .dynamic section and rendezvous structure. Also, this address can be used in the computation of the virtual base address for position independent executables. llvm-svn: 123466
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud