Hi guys, I'm working on a clone of the elfdump command.
My program works fine when running 'elfdump -ecps file` on all executables. However, when I run my program on a library file, say libc.so, it prints out an incorrect version number for all symbols in the .symtab section (specifically they are all zero). I've looked over the documentation tons of times, but I can't figure out why this is happening...
Can someone please provide some tips? Or possibly how to detect whether its a library or not so I could just hard-code a 0 in?
Thanks!