Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ftrace -s ./programm doesnt work with gcc #5

Open
flaskymasky opened this issue Jul 14, 2021 · 13 comments
Open

ftrace -s ./programm doesnt work with gcc #5

flaskymasky opened this issue Jul 14, 2021 · 13 comments

Comments

@flaskymasky
Copy link

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

Ubuntu kernel: 5.8.0-59

@elfmaster
Copy link
Owner

elfmaster commented Jul 14, 2021 via email

@elfmaster
Copy link
Owner

elfmaster commented Jul 14, 2021 via email

@flaskymasky
Copy link
Author

flaskymasky commented Jul 16, 2021

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.

@flaskymasky
Copy link
Author

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

@elfmaster
Copy link
Owner

elfmaster commented Jul 16, 2021 via email

@flaskymasky
Copy link
Author

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

@elfmaster
Copy link
Owner

elfmaster commented Jul 16, 2021 via email

@flaskymasky
Copy link
Author

Thank you alot.

@yhnu
Copy link

yhnu commented Sep 3, 2021

@elfmaster
the problem is that :
image

and some call instruinstruction is ff15 not prefix is e8

image

@elfmaster
Copy link
Owner

elfmaster commented Sep 3, 2021 via email

@elfmaster
Copy link
Owner

elfmaster commented Sep 3, 2021 via email

@huangxianxia
Copy link

@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

@huangxianxia
Copy link

huangxianxia commented Feb 23, 2022

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants