From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15024 invoked by alias); 13 Nov 2012 08:52:47 -0000 Received: (qmail 15015 invoked by uid 22791); 13 Nov 2012 08:52:46 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RDNS_DYNAMIC,TW_BJ,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: sourceware.org Received: from host-82-135-62-35.customer.m-online.net (HELO mail.embedded-brains.de) (82.135.62.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Nov 2012 08:52:13 +0000 Received: by mail.embedded-brains.de (Postfix, from userid 65534) id 74092652C6A; Tue, 13 Nov 2012 09:52:09 +0100 (CET) Received: from [192.168.96.64] (eb0024.eb.z [192.168.96.64]) by mail.embedded-brains.de (Postfix) with ESMTP id F3B75652C68 for ; Tue, 13 Nov 2012 09:52:07 +0100 (CET) Message-ID: <50A20A37.4070208@embedded-brains.de> Date: Tue, 13 Nov 2012 08:52:00 -0000 From: Sebastian Huber User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120601 Thunderbird/13.0 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: Binutils version for GCC 4.8 References: <509D274F.5020001@embedded-brains.de> In-Reply-To: <509D274F.5020001@embedded-brains.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg00100.txt.bz2 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.