elfmaster/ftrace

ftrace -s ./programm doesnt work with gcc

flaskymasky opened this issue · 13 comments

i tried it with gcc on both 32 and 64 executable.
it works with clang tho.

Ubuntu kernel: 5.8.0-59

Sorry i had no internet the rest of my text didn't send;

if I run 64 bit

gcc -o prog prog.c
ftrace -s prog

output just :

[+] Function tracing begins here:

  • nothing -

just the normal program output nothing else.

when I use clang to compile it works perfect, maybe some difference in linking and symbol tables, I don't know.
But it works otherwise perfectly.
Anyways very good tool and great book you got deep knowledge.

Hey, can you recommend me some books for expanding my knowledge in general ( binary analysis, Assembly, ... ) maybe some of which you gained your knowledge too.
I would appreciate it very much.
Thanks

Ok thanks.
I am doing your book right now, as I said great book and thank you for your time :)

Thank you alot.

yhnu commented

@elfmaster
the problem is that :
image

and some call instruinstruction is ff15 not prefix is e8

image

@elfmaster the problem is that : image

and some call instruinstruction is ff15 not prefix is e8

image

how solve it? thanks,i have same problem

@elfmaster the problem is that : image
and some call instruinstruction is ff15 not prefix is e8
image

how solve it? thanks,i have same problem

answer myself:
gcc option: gcc -no-pie -o test test.c.
image