diff options
author | Stephen Wilson <wilsons@start.ca> | 2011-03-08 04:12:15 +0000 |
---|---|---|
committer | Stephen Wilson <wilsons@start.ca> | 2011-03-08 04:12:15 +0000 |
commit | d126c8cc5a58988928808a0dbc4ea908463ec5a2 (patch) | |
tree | bcfd1f08ec8ab906476d70c3ab3a2ebe3b183a2b /clang/lib/Sema/Sema.cpp | |
parent | 97c250405b2a7e52f546e27644c494ee181bd6f7 (diff) | |
download | bcm5719-llvm-d126c8cc5a58988928808a0dbc4ea908463ec5a2.tar.gz bcm5719-llvm-d126c8cc5a58988928808a0dbc4ea908463ec5a2.zip |
Fix ObjectFileElf::GetEntryPointAddress()
ELF object files do not implicitly have a symbol named "start" as an entry
point. For example, on Linux it is often named "_start", but can be trivially
set to any symbol by passing an --entry argument to the linker.
Use the ELF header to determine the entry point and resolve the associated
section based on that address.
Also, update the linux dynamic loader to call GetEntryPointAddress instead of
GetEntryPoint.
llvm-svn: 127218
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
0 files changed, 0 insertions, 0 deletions