From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 485 invoked by alias); 17 Apr 2008 02:33:29 -0000 Received: (qmail 474 invoked by uid 22791); 17 Apr 2008 02:33:28 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Apr 2008 02:33:08 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 39082983D9; Thu, 17 Apr 2008 02:33:07 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 05F9198278; Thu, 17 Apr 2008 02:33:07 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JmJvu-0004Pp-BI; Wed, 16 Apr 2008 22:33:06 -0400 Date: Thu, 17 Apr 2008 10:20:00 -0000 From: Daniel Jacobowitz To: Doug Evans Cc: gdb@sourceware.org, ppluzhnikov@google.com Subject: Re: determining whether page 0 (or low addresses in general) is executable Message-ID: <20080417023306.GA16956@caradoc.them.org> Mail-Followup-To: Doug Evans , gdb@sourceware.org, ppluzhnikov@google.com References: <20080416192047.984F91C75AD@localhost> <20080416193346.GA25227@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes 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 X-SW-Source: 2008-04/txt/msg00166.txt.bz2 On Wed, Apr 16, 2008 at 06:02:24PM -0700, Doug Evans wrote: > > I thought GNU ld only had this problem for .debug_info and already > > edited out discarded FDEs from .debug_frame / .eh_frame. Are you > > using GNU ld or gold? Maybe the linker only edits .eh_frame. > > Actually the problem occurs with both gld and gold. The linker does > explicitly handle .eh_frame, and I'm told the debug info doesn't go > into comdat on purpose (complexity issues I gather). OK, so we could probably fix this in GNU ld by reusing the eh-frame editor for .debug_frame too. COMDAT is better, of course. It's just hard :-( -- Daniel Jacobowitz CodeSourcery