From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23239 invoked by alias); 8 Jun 2012 15:45:14 -0000 Received: (qmail 23204 invoked by uid 22791); 8 Jun 2012 15:45:12 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Jun 2012 15:44:56 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Sd1Ms-0005UA-Lw from Maciej_Rozycki@mentor.com ; Fri, 08 Jun 2012 08:44:54 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 8 Jun 2012 08:44:22 -0700 Received: from [172.30.1.189] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Fri, 8 Jun 2012 16:44:52 +0100 Date: Fri, 08 Jun 2012 15:45:00 -0000 From: "Maciej W. Rozycki" To: Pedro Alves CC: Jan Kratochvil , Joakim Tjernlund , Subject: Re: [PATCH] solib-svr4: Avoid unwanted shlib internal BPs When debugging Linux kernel or u-boot In-Reply-To: <4FD1EB8C.1050407@redhat.com> Message-ID: References: <1338562868-22411-1-git-send-email-Joakim.Tjernlund@transmode.se> <4FC8EC08.1060609@redhat.com> <20120601172214.GA21236@host2.jankratochvil.net> <4FC8FDD2.7060407@redhat.com> <4FD1EB8C.1050407@redhat.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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: 2012-06/txt/msg00235.txt.bz2 On Fri, 8 Jun 2012, Pedro Alves wrote: > [...] So it is a contrived > example to strip "_dl_debug_state" and "_start" but not "main", because > that's not something that is natural to do. Indeed, I missed that you referred to that peculiarity rather than dlopening from a static binary in general. > "_dl_debug_state" ends up available on static links too, I don't see what > is there to do. It can be stripped from a static binary, while it always stays as a dynamic symbol in ld.so, even if you strip the dynamic linker. However in practice that probably does not matter indeed. Maciej