Bug #907

function tracing from rtld

Added by corecode almost 7 years ago. Updated almost 7 years ago.

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

0%

Category:-
Target version:-

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

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

History

#1 Updated by aoiko almost 7 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

#2 Updated by wa1ter almost 7 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 almost 7 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

#4 Updated by dillon almost 7 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

#5 Updated by josepht almost 7 years ago

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

Joe

Also available in: Atom PDF