[Lldb-commits] [lldb] [lldb/Target] Add GetStartSymbol method to DynamicLoader plugins (PR #99673)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 22 00:04:18 PDT 2024
labath wrote:
I'd like to note that, at least in the ELF world, there's no guarantee that there will be an actual *symbol* at the address where the process starts executing. The convention is to call this `_start` but nothing in the system actually relies on that. The ELF header contains the address of the first instruction, the OS jumps to that, and that's it.
So, I think that a more generic interface would be to return an `Address` (which the caller can try to resolve to a symbol if it wants to).
https://github.com/llvm/llvm-project/pull/99673
More information about the lldb-commits
mailing list