开发者

Tracing loading of ELF file

开发者 https://www.devze.com 2023-03-15 21:28 出处:网络
Is it possible to trace loading of开发者_高级运维 ELF executable from typing name of program and pressing enter until execution of main function? If yes, then how to do this?man ld.so

Is it possible to trace loading of开发者_高级运维 ELF executable from typing name of program and pressing enter until execution of main function? If yes, then how to do this?


man ld.so

will tell you about LD_DEBUG.


How about strace?

strace myprog myargs...

This will launch your program and print all the system calls as they are made, which I assume is what you meant by "trace." You can just stop looking at the output once you see your own code being executed.

0

精彩评论

暂无评论...
验证码 换一张
取 消