I\'m working on a utility which needs to resolve hex addresses to a symbolic function name and source code line number within a binary. The utility will run on Linux on x86,
You should give Construct a try. It is very useful to parse binary data into python objects.
There is even an example for the ELF32 file format.