开发者

how to read the header block gcc compiler put to .o .a and an executable

开发者 https://www.devze.com 2023-01-17 05:19 出处:网络
I\'d like to read the header block gcc put to the beginning of all .o .a and executables. In those days, on Solaris, there was an util开发者_JAVA技巧ity for this purpose. On linux, is similar utility

I'd like to read the header block gcc put to the beginning of all .o .a and executables. In those days, on Solaris, there was an util开发者_JAVA技巧ity for this purpose. On linux, is similar utility available?


Yes. objdump can read an ELF file (be it an executable or a shared object/archive). Other then that, nm and readelf can too, but there are less useful, IMO

0

精彩评论

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