From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3122 invoked by alias); 13 Mar 2014 13:13:16 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 3100 invoked by uid 89); 13 Mar 2014 13:13:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-pd0-f174.google.com Received: from mail-pd0-f174.google.com (HELO mail-pd0-f174.google.com) (209.85.192.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 13 Mar 2014 13:13:14 +0000 Received: by mail-pd0-f174.google.com with SMTP id y13so1057574pdi.33 for ; Thu, 13 Mar 2014 06:13:12 -0700 (PDT) X-Received: by 10.68.96.99 with SMTP id dr3mr2364243pbb.40.1394716392512; Thu, 13 Mar 2014 06:13:12 -0700 (PDT) Received: from bubble.grove.modra.org ([101.166.26.37]) by mx.google.com with ESMTPSA id lh13sm9879710pab.4.2014.03.13.06.13.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Mar 2014 06:13:11 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id EAEEFEA00D2; Thu, 13 Mar 2014 23:43:05 +1030 (CST) Date: Thu, 13 Mar 2014 13:13:00 -0000 From: Alan Modra To: Pedro Alves Cc: "Metzger, Markus T" , Cary Coutant , Doug Evans , "gdb@sourceware.org" , "binutils@sourceware.org" Subject: Re: vdso handling Message-ID: <20140313131305.GB3384@bubble.grove.modra.org> Mail-Followup-To: Pedro Alves , "Metzger, Markus T" , Cary Coutant , Doug Evans , "gdb@sourceware.org" , "binutils@sourceware.org" References: <20140312071701.GW26922@bubble.grove.modra.org> <20140313010147.GZ26922@bubble.grove.modra.org> <5321834E.9000509@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5321834E.9000509@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-03/txt/msg00033.txt.bz2 On Thu, Mar 13, 2014 at 10:07:10AM +0000, Pedro Alves wrote: > Why doesn't the memory-backed bfd paths take the same paths as > a file-backed bfd internally in bfd? I think they do. In symfile-mem.c:symbol_file_add_from_memory nbfd = bfd_elf_bfd_from_remote_memory (templ, addr, &loadbase, target_read_memory_bfd); .. if (!bfd_check_format (nbfd, bfd_object)) That bfd_check_format is where elf_object_p is called. *If* bfd_from_remote_memory picked up the sections headers, you'll get a normal bfd with sections.. -- Alan Modra Australia Development Lab, IBM