jimingham wrote:

You are in effect adding the rule: "If ANY symbol at the address where we've 
stopped is a Trampoline symbol, we'll follow the trampoline symbol to its 
target."  The old rule being "If the FIRST symbol we come across is a 
Trampoline symbol..."

That seems like a fine rule, but it seems sufficiently general  that we should 
be implementing it above the layer of a particular dynamic loader plugin.

OTOH, if this is really a weird thing to do and only mold on ELF will ever do 
that, I guess you could argue that we shouldn't penalize all the other systems 
with an extra search that will only ever bear fruit for the ELF dynamic loader 
plugin.

I'm on the fence about that.

Unfortunately, since this is execution control, you're going to have to 
actually try to step across one of these to make sure it works, so you really 
will have to have a process you can run.

As for the test, what you are trying to do at base is to find produce a plt 
entry that has another symbol at the same address.  In theory, you don't need 
mold for that if you can cook up some fancy linker script or asm trickery to 
make that happen.

https://github.com/llvm/llvm-project/pull/178695
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to