The goal is to code an equivalent to the system commands nm without any options and objdump with -fs option.
You must handle a variable number of parameters.
The display produced MUST be the same as the one on your dump.
The programs must work with the following:
• relocatable files.o&.a
• shared files.so
• executable files
Note: 16.6
Nm tests | Objdump Tests |
---|---|
nm advanced tests: 1/2 |
objdump advanced tests: 1/2 |
nm args tests: 2/2 |
objdump args tests: 2/2 |
nm basics: 5/5 |
objdump basics: 4/4 |
nm error tests: 2/2 |
objdump error tests: 2/2 |
nm flag & address tests: 5/5 |
objdump cheater test: 1/1 |
nm full compliance tests: 3/4 |
objdump full compliance tests: 0/4 |
nm standard tests: 4/5 |
objdump header tests: 13/14 |
objdump section data tests: 2/3 |
|
objdump section name tests: 2/2 |
Unit Tests:
Nm coverage | Objdump coverage | Total Coverage |
---|---|---|
89% |
95% |
92% |