Bug #907
closed
function tracing from rtld
Added by corecode almost 17 years ago.
Updated almost 17 years ago.
Description
Hey,
on my quest to get firefox/thunderbird working with libthread_xu,
Aggelos and me developed a nice hook for rtld to trace function calls in
dynamically linked binaries.
What do people think, should we add this to rtld? It's quite small.
cheers
simon
Files
To be fair, my part mostly involved questioning the approach and coming up
with objections every step of the way :) While this is a useful contribution,
it's still Simon's code.
Plus, it opens the door for some cool hacks :)
Aggelos
Seems like a great idea to me. I can't tell from reading the code how I
would use it, though. Would some userland tool like strace need to be
modified to use the hook, or what?
Wearing your white hat or black hat while hacking?
You need to load your own _rtld_functrace function. I believe there's a basic
version somewhere on Simon's disk that could serve as an example. Advanced
functionality like decoding the stack data awaits brave implementors.
No hat, I usually code indoors. Oh, wait, that's not what you mean :)
HTH,
Aggelos
That's so.... that's so... ok, I gotta say it. It's so CUTE!
In anycase, I'm fine with you committing it with the provisio that you
document it in man rtld(1).
-Matt
I was afraid you were gonna say 'HOT' in which case I believe Paris
Hilton would have sued. :)
Joe
Also available in: Atom
PDF