Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check DWARF version of compilation unit

all, is there a tool to check DWARF version of file? Something like this:

$ dwarf_tool binary_name
4
like image 699
usamytch Avatar asked Apr 23 '13 12:04

usamytch


1 Answers

In Linux environment? If you have GCC installed, you should have readelf executable. So you can try this

readelf --debug-dump=info binary_name | grep -A 2 'Compilation Unit @'

like image 134
jclin Avatar answered Oct 24 '22 09:10

jclin