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
精彩评论