.elf file

I am trying to extract information about all objects and elements in the executable code using .elf file.
For what I know it contains all information necessary, but there is also a way to do that with the use of .hex or .ihex and .bin and .map files.
Any idea how to do it? Probably writing a script would be the best idea