Readelf -s does not display full variable names

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

enter image description here

I draw a blue rectangle to show that the variable names are not displayed correctly. they are truncated after 25 characters. How can I display the full names?

+6
source share
1 answer

Add a wide switch:

 readelf -s --wide pathOfFile 
+16
source

Source: https://habr.com/ru/post/919047/


All Articles