Bug #907

function tracing from rtld

Added by corecode over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:-% Done:


Target version:-



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.


rtld_functrace.diff Magnifier (3.95 KB) corecode, 01/05/2008 11:25 PM


#1 Updated by aoiko over 8 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 :)


#2 Updated by wa1ter over 8 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?

#3 Updated by aoiko over 8 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 :)


#4 Updated by dillon over 8 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).


#5 Updated by josepht over 8 years ago

I was afraid you were gonna say 'HOT' in which case I believe Paris
Hilton would have sued. :)


Also available in: Atom PDF