From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27307 invoked by alias); 14 Mar 2010 21:38:00 -0000 Received: (qmail 27299 invoked by uid 22791); 14 Mar 2010 21:37:59 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 14 Mar 2010 21:37:51 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2ELboqD027461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 14 Mar 2010 17:37:50 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2ELblv0031261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 14 Mar 2010 17:37:49 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id o2ELbl0j032407 for ; Sun, 14 Mar 2010 22:37:47 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id o2ELblmq032406 for gdb-patches@sourceware.org; Sun, 14 Mar 2010 22:37:47 +0100 Date: Sun, 14 Mar 2010 21:38:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: [patch] Fix false warning: section .dynbss not found in ... Message-ID: <20100314213746.GA32276@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00506.txt.bz2 Hi, this is a follow-up on: http://sourceware.org/ml/gdb-patches/2010-02/msg00345.html http://sourceware.org/ml/gdb-patches/2010-02/msg00345.html found two new sections by prelink: Reading symbols from /usr/bin/gdb...Reading symbols from /usr/lib/debug/usr/bin/gdb.debug... warning: section .dynbss not found in /usr/lib/debug/usr/bin/gdb.debug Checked the prelink source (again) and I see no more of them there now. No regressions on {x86_64,x86_64-m32,i686}-fedora12-linux-gnu. Thanks, Jan 2010-03-14 Jan Kratochvil * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" and ".sdynbss". Simplify the comment. --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -577,15 +577,16 @@ addr_info_make_relative (struct section_addr_info *addrs, bfd *abfd) unexpected and we want to issue a warning. However, the ELF prelinker does create a couple of sections - (".gnu.liblist" and ".gnu.conflict") which are marked in the main - executable as loadable (they are loaded in memory from the - DYNAMIC segment) and yet are not present in separate debug info - files. This is fine, and should not cause a warning. Shared - libraries contain just the section ".gnu.liblist" but it is not - marked as loadable there. */ + which are marked in the main executable as loadable (they are + loaded in memory from the DYNAMIC segment) and yet are not present + in separate debug info files. This is fine, and should not cause + a warning. Shared libraries contain just the section + ".gnu.liblist" but it is not marked as loadable there. */ if (!(strcmp (sect_name, ".gnu.liblist") == 0 - || strcmp (sect_name, ".gnu.conflict") == 0)) + || strcmp (sect_name, ".gnu.conflict") == 0 + || strcmp (sect_name, ".dynbss") == 0 + || strcmp (sect_name, ".sdynbss") == 0)) warning (_("section %s not found in %s"), sect_name, bfd_get_filename (abfd));