From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8216 invoked by alias); 22 Jun 2005 11:46:31 -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 8175 invoked by uid 22791); 22 Jun 2005 11:46:24 -0000 Received: from norbert.ecoscentric.com (HELO smtp.ecoscentric.com) (194.153.168.165) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 22 Jun 2005 11:46:24 +0000 Received: by smtp.ecoscentric.com (Postfix, from userid 99) id D4F9B65C0A9; Wed, 22 Jun 2005 12:46:22 +0100 (BST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by smtp.ecoscentric.com (Postfix) with ESMTP id 7B8B065C057; Wed, 22 Jun 2005 12:46:21 +0100 (BST) Message-ID: <42B94F8D.6000405@eCosCentric.com> Date: Wed, 22 Jun 2005 11:46:00 -0000 From: Jonathan Larmour User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513) MIME-Version: 1.0 To: Eric Botcazou Cc: binutils@sources.redhat.com, Alan Modra Subject: Re: gc sections and .eh_frame References: <42A5DE0C.9050108@eCosCentric.com> <200506101543.47700.ebotcazou@adacore.com> <42A9A33F.7030406@eCosCentric.com> <200506101649.11868.ebotcazou@adacore.com> In-Reply-To: <200506101649.11868.ebotcazou@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-06/txt/msg00541.txt.bz2 Eric Botcazou wrote: >>Indeed so, well thought! I've tested it with powerpc-eabi and it works >>fine. I'm happy with that, great work, thanks! > > > Thanks for confirming. However I think I've grasped Alan's remark and we > indeed risk marking all the functions in a given input file if it happens to > contain no EH tables because its functions don't need them. > > I can think of 2 solutions: a second loop as you initially suggested or to add > a new parameter 'skip_code' to _bfd_elf_gc_mark to skip SEC_CODE sections > when it is invoked on .eh_frame. Alan will decide whether the latter approach > is easily implementable. I think Alan maybe didn't notice his name being mentioned :). Alan, do you have any guidance on the best approach? Jifl -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine