From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32348 invoked by alias); 20 Dec 2004 12:41:42 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 32196 invoked from network); 20 Dec 2004 12:41:24 -0000 Received: from unknown (HELO server7.nfra.nl) (192.87.1.57) by sourceware.org with SMTP; 20 Dec 2004 12:41:24 -0000 Received: from juw15.nfra.nl [10.87.8.15] by server7.nfra.nl; Mon, 20 Dec 2004 13:41:45 +0100 Received: from juw15.nfra.nl (localhost [127.0.0.1]) by juw15.nfra.nl (8.12.2+Sun/8.11.1) with ESMTP id iBKCfDOJ021324; Mon, 20 Dec 2004 13:41:13 +0100 (CET) Received: (from kettenis@localhost) by juw15.nfra.nl (8.12.2+Sun/8.12.2/Submit) id iBKCfCiI021313; Mon, 20 Dec 2004 13:41:12 +0100 (CET) Date: Mon, 20 Dec 2004 12:41:00 -0000 Message-Id: <200412201241.iBKCfCiI021313@juw15.nfra.nl> From: Mark Kettenis To: amodra@bigpond.net.au CC: binutils@sources.redhat.com, gdb@sources.redhat.com Subject: Giving canonical sections a name breaks GDB? X-SW-Source: 2004-12/txt/msg00238.txt.bz2 Hi Alan, GDB is a wee bit broken on sparc-sun-solaris2.9, and it seems the following patch is the culprit: 2004-12-11 Alan Modra * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that canonical sections syms have a name. With this patch, I get the following output in GDB: (gdb) disas main Dump of assembler code for function main: 0x00012928 : save %sp, -1272, %sp 0x0001292c : sethi %hi(0x24400), %o0 .. 0x0001351c : ld [ %o0 ], %o1 0x00013520 : ld [ %o1 ], %o0 0x00013524 <.SUNW_version+0>: st %o0, [ %fp + -952 ] 0x00013528 <.SUNW_version+4>: ld [ %o1 + 4 ], %o0 .. 0x00013b60 <.SUNW_version+1596>: ret 0x00013b64 <.SUNW_version+1600>: restore End of assembler dump. (.SUNW_version is the name of one of the sections in the ELF file) without the patch above, everything is fine. Any idea what's wrong? Mark