From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17726 invoked by alias); 19 Jun 2002 14:08:59 -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 17712 invoked from network); 19 Jun 2002 14:08:58 -0000 Received: from unknown (HELO rwcrmhc53.attbi.com) (204.127.198.39) by sources.redhat.com with SMTP; 19 Jun 2002 14:08:58 -0000 Received: from ocean.lucon.org ([12.234.143.38]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020619140857.YGM11659.rwcrmhc53.attbi.com@ocean.lucon.org>; Wed, 19 Jun 2002 14:08:57 +0000 Received: by ocean.lucon.org (Postfix, from userid 1000) id B415C125C1; Wed, 19 Jun 2002 07:08:56 -0700 (PDT) Date: Wed, 19 Jun 2002 07:08:00 -0000 From: "H . J . Lu" To: "Zagorodnev, Grigory" Cc: "'binutils@sources.redhat.com'" Subject: Re: Shared library question Message-ID: <20020619070856.A24023@lucon.org> References: <51524B6C689ED4118D4F0090273ACE32928844@odyssey.stl.sarov.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <51524B6C689ED4118D4F0090273ACE32928844@odyssey.stl.sarov.ru>; from Grigory_Zagorodnev@stl.sarov.ru on Wed, Jun 19, 2002 at 05:58:06PM +0400 X-SW-Source: 2002-06/txt/msg00527.txt.bz2 On Wed, Jun 19, 2002 at 05:58:06PM +0400, Zagorodnev, Grigory wrote: > There is a little question about... > > I have a shared library contaning some symbol 'foo'. This symbol has no any > version defined. > > Is there a way to keep symbol accessible at run-time but hide it at build > time? > So any application previously built with (linked against) that library stay > workable but any new application will not see this symbol i.e. linker will > not resolve symbol foo from that library. You didn't say if you could rebuild the shared library from source. H.J.