Dwarf Error: wrong version in compilation unit header

Nick Clifton nickc@redhat.com
Tue Aug 25 08:46:00 GMT 2009


Hi Swami,

> But, now problem is, gdb give an error message as show below, during the 
> load stage.
> ===
> Dwarf Error: wrong version in compilation unit header (is -8448, should 

Try looking at the executable with "readelf -w".

> Any hint for above problem cause?

Probably cause: The evaluation in the linker of the relocs created for 
the symbol difference expression is broken somehow and is changing the 
wrong bytes in the .debug_info section.

Cheers
   Nick




More information about the Gdb mailing list