Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

readelf -s does not output full variable names

I need to get the global symbols from a compiled c program file. What I use is the linux command readelf -s filePath when I use that command this is what I get:

enter image description here

I draw a blue rectangle to show that variable names do not get displayed correctly. they get trim after 25 characters. How can I make it display the full names?

like image 927
Tono Nam Avatar asked Jun 26 '12 15:06

Tono Nam


1 Answers

Add the wide switch:

readelf -s --wide pathOfFile
like image 60
Tono Nam Avatar answered Oct 14 '22 13:10

Tono Nam