* Binutils version for GCC 4.8
@ 2012-11-09 15:55 Sebastian Huber
2012-11-13 8:52 ` Sebastian Huber
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2012-11-09 15:55 UTC (permalink / raw)
To: gcc-help
Hello,
do I need a specific Binutils version (I use version 2.22) for GCC 4.8 (trunk)?
I have problems with the debug information:
powerpc-rtems4.11-objdump --dwarf some.exe > /dev/null
powerpc-rtems4.11-objdump: Warning: There is a hole [0xf2dc7 - 0xf2def] in
.debug_loc section.
powerpc-rtems4.11-objdump: Warning: There is a hole [0xf53ea - 0xf5474] in
.debug_loc section.
powerpc-rtems4.11-objdump: Warning: There is an overlap [0x30 - 0x18] in
.debug_ranges section.
powerpc-rtems4.11-objdump: Warning: There is an overlap [0x160 - 0x148] in
.debug_ranges section.
powerpc-rtems4.11-objdump: Warning: There is an overlap [0x560 - 0x548] in
.debug_ranges section.
powerpc-rtems4.11-objdump: Warning: There is an overlap [0x8e8 - 0x8c0] in
.debug_ranges section.
[...]
powerpc-rtems4.11-objdump: Warning: There is an overlap [0x32a30 - 0x32a10] in
.debug_ranges section.
powerpc-rtems4.11-objdump: Warning: There is an overlap [0x32b28 - 0x32ae0] in
.debug_ranges section.
powerpc-rtems4.11-objdump: Warning: There is an overlap [0x32be0 - 0x32bc8] in
.debug_ranges section.
GDB 7.4.1 says that:
(gdb) s
Single stepping until exit from function _Workspace_Handler_initialization,
which has no line number information.
0x00000410 in bsp_work_area_initialize ()
Other debugger refuse to load the ELF file. Has someone a hint how I can check
that the debug information is ok?
--
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@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Binutils version for GCC 4.8
2012-11-09 15:55 Binutils version for GCC 4.8 Sebastian Huber
@ 2012-11-13 8:52 ` Sebastian Huber
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Huber @ 2012-11-13 8:52 UTC (permalink / raw)
To: gcc-help
On 11/09/2012 04:54 PM, Sebastian Huber wrote:
> Hello,
>
> do I need a specific Binutils version (I use version 2.22) for GCC 4.8 (trunk)?
> I have problems with the debug information:
>
> powerpc-rtems4.11-objdump --dwarf some.exe > /dev/null
> powerpc-rtems4.11-objdump: Warning: There is a hole [0xf2dc7 - 0xf2def] in
> .debug_loc section.
> powerpc-rtems4.11-objdump: Warning: There is a hole [0xf53ea - 0xf5474] in
> .debug_loc section.
> powerpc-rtems4.11-objdump: Warning: There is an overlap [0x30 - 0x18] in
> .debug_ranges section.
> powerpc-rtems4.11-objdump: Warning: There is an overlap [0x160 - 0x148] in
> .debug_ranges section.
> powerpc-rtems4.11-objdump: Warning: There is an overlap [0x560 - 0x548] in
> .debug_ranges section.
> powerpc-rtems4.11-objdump: Warning: There is an overlap [0x8e8 - 0x8c0] in
> .debug_ranges section.
> [...]
> powerpc-rtems4.11-objdump: Warning: There is an overlap [0x32a30 - 0x32a10] in
> .debug_ranges section.
> powerpc-rtems4.11-objdump: Warning: There is an overlap [0x32b28 - 0x32ae0] in
> .debug_ranges section.
> powerpc-rtems4.11-objdump: Warning: There is an overlap [0x32be0 - 0x32bc8] in
> .debug_ranges section.
Ok, the bug with the overlaps disappeared with a more recent trunk version.
>
> GDB 7.4.1 says that:
>
> (gdb) s
> Single stepping until exit from function _Workspace_Handler_initialization,
> which has no line number information.
> 0x00000410 in bsp_work_area_initialize ()
>
> Other debugger refuse to load the ELF file. Has someone a hint how I can check
> that the debug information is ok?
>
This was due to the new DWARF 4 debug information emitted by GCC 4.8. GDB 7.5
can cope with it.
--
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@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-13 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-09 15:55 Binutils version for GCC 4.8 Sebastian Huber
2012-11-13 8:52 ` Sebastian Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).