elf文件格式

1.readelf -p .comment modeset1  查看elf可执行文件是由哪个版本的编译器编译的
  eg.$ readelf -p .comment modeset1
  String dump of section '.comment':
  [ 0] GCC: (Linaro GCC 5.2-2015.11-2) 5.2.1 20151005

2.readelf -Wa modeset1 | head 查看elf文件头

3.readelf -wi a.out 查看elf文件信息

4.objdump -s --section .comment modeset1 查看.comment段的信息

原文地址:https://www.cnblogs.com/hellokitty2/p/9367064.html