I am trying to parse a ELF file in DWARF2 format. There seems to be an incorrect DIE entry for one of the subprogram. It is supposed to have an entry "DW_TAG_subprogram" but has "DW_TAG_compile_unit" and there are some special characters under DW_AT_name.
Could this be linked to compilation / linking errors (bugs within compiler) ?
Any help greatly appreciated.
Thanks