Project

General

Profile

Actions

Bug #907

closed

function tracing from rtld

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

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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

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

Updated by aoiko over 16 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

Actions #2

Updated by wa1ter over 16 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?

Actions #3

Updated by aoiko over 16 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

Actions #4

Updated by dillon over 16 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
Actions #5

Updated by josepht over 16 years ago

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

Joe

Actions

Also available in: Atom PDF