Problems with the debug information and C++

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Dec 17 09:40:26 UTC 2008


Hi,

during the change from GCC 4.2.4 to 4.3.2 something happened with the
debug information (example output for PSIM iostream sample):

Version 4.8:

/opt/rtems-4.8/powerpc-rtems4.8/psim/lib/rtems-4.8/tests

powerpc-rtems4.10-objdump -W iostream.exe > /dev/null

powerpc-rtems4.10-objdump: Warning: There is a hole [0x343e6 - 0x343fd]
in .debug_loc section.

Version 4.9:

/opt/rtems-4.9/powerpc-rtems4.9/psim/lib/rtems-4.9/tests

powerpc-rtems4.10-objdump -W cxx_iostream.exe > /dev/null

powerpc-rtems4.10-objdump: Error: Range lists in .debug_info section
aren't in ascending order!
powerpc-rtems4.10-objdump: Warning: There is a hole [0x230 - 0x640] in
.debug_ranges section.
powerpc-rtems4.10-objdump: Warning: There is an overlap [0x730 - 0x230]
in .debug_ranges section.

Version CVS HEAD:

/opt/rtems-4.10/powerpc-rtems4.10/psim/lib/rtems-4.10/tests

powerpc-rtems4.10-objdump -W cxx_iostream.exe > /dev/null

powerpc-rtems4.10-objdump: Error: Range lists in .debug_info section
aren't in ascending order!
powerpc-rtems4.10-objdump: Warning: There is a hole [0x230 - 0x640] in
.debug_ranges section.
powerpc-rtems4.10-objdump: Warning: There is an overlap [0x730 - 0x230]
in .debug_ranges section.

There are many more warnings but they differ only in the numbers.  The
error and the overlap warning is new in 4.9 and CVS HEAD.  I noticed
this also on m68k.  Is this something that may cause harm?

-- 
Sebastian Huber, Embedded Brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list