Problems with the debug information and C++

Joel Sherrill joel.sherrill at OARcorp.com
Wed Dec 17 18:25:48 UTC 2008


Sebastian Huber wrote:
> 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?
>
>   
I have no idea but kind of doubt it.  The best
solution is to look at the default linker
scripts in /opt/rtems/... and see what is
different between them and the BSP linkcmds.
Things evolve and have to be fixed.

If you can point the solution out, I may be
able to help implement it after the first of
the new year

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list