From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17109 invoked by alias); 1 Aug 2014 13:29:33 -0000 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 Received: (qmail 17081 invoked by uid 89); 1 Aug 2014 13:29:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Aug 2014 13:29:27 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1XDCtg-0005H2-Bk from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Fri, 01 Aug 2014 06:29:24 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 1 Aug 2014 06:29:24 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.2.247.3; Fri, 1 Aug 2014 06:29:23 -0700 Message-ID: <53DB9565.40807@codesourcery.com> Date: Fri, 01 Aug 2014 13:29:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Subject: Re: Revisit gdb/12528 for bare metal targets References: <53D8A264.1050103@codesourcery.com> In-Reply-To: <53D8A264.1050103@codesourcery.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00017.txt.bz2 On 07/30/2014 03:44 PM, Yao Qi wrote: > I am > looking for something else to check, for example, if ADDRESS is zero > and address zero isn't within any SEC_LOAD sections of CU > ("break-on-linker-gcd-function.cc"), then the function should be GC'ed > by the linker. I find I can check 'psymtab->textlow > 0'. If psymtab->textlow is greater than zero, and the address is zero, then the corresponding function is GC'ed. I'll post a patch soon. -- Yao (齐尧)