Given two .o (object) files, how do we find the difference between them in terms of changes in functions and variables in linux-CentOS
Asked
Active
Viewed 302 times
1 Answers
1

al45tair
- 4,405
- 23
- 30
-
thanx alister ....but what if we want to find a specific values,...say for example i want to find the value of a global variable from its object file – Sujeeth Jul 19 '14 at 15:25
-
the variables when declared and compiled to an object file has to be there somewhere....is there any nm / objdump / any other function which can tell me the value of this variable??? – Sujeeth Jul 19 '14 at 15:29
-
There's nothing built-in to `nm` or `objdump`, but that doesn't stop you from finding the address of the variable (either from the debug information or from the symbol table(s), depending), when dumping the containing section and looking at the output. – al45tair Jul 21 '14 at 07:37