Bug #907
closedfunction tracing from rtld
0%
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
Updated by aoiko almost 17 years ago
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
Updated by wa1ter almost 17 years ago
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?
Updated by aoiko almost 17 years ago
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
Updated by dillon almost 17 years ago
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
Updated by josepht almost 17 years ago
I was afraid you were gonna say 'HOT' in which case I believe Paris
Hilton would have sued. :)
Joe