Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between nm and objdump

Looking at the manuals, objdump and nm have overlapping features.

When would you use each one? What was the original purpose of each command?

like image 545
Natan Yellin Avatar asked Aug 28 '11 08:08

Natan Yellin


1 Answers

They have no similar parameters. nm lists file symbols, while objdump can show a lot of different information about files. objdump can shows symbols too, and it is explicitly noted in the manpage that "This is similar to the information provided by the nm program, although the display format is different."

like image 120
wRAR Avatar answered Oct 12 '22 13:10

wRAR