From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11181 invoked by alias); 11 Dec 2003 14:10:10 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11167 invoked from network); 11 Dec 2003 14:10:09 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 11 Dec 2003 14:10:09 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1AURW4-0006qq-UC for ; Thu, 11 Dec 2003 09:10:08 -0500 Date: Thu, 11 Dec 2003 14:10:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: optind Message-ID: <20031211141008.GA26315@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <20031210142045.GL23712@ata.cs.hacettepe.edu.tr> <20031210144917.GA9115@nevyn.them.org> <20031210160910.GM23712@ata.cs.hacettepe.edu.tr> <20031210165318.GO23712@ata.cs.hacettepe.edu.tr> <20031210171715.GA6721@nevyn.them.org> <20031210173730.GP23712@ata.cs.hacettepe.edu.tr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031210173730.GP23712@ata.cs.hacettepe.edu.tr> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-12/txt/msg00170.txt.bz2 On Wed, Dec 10, 2003 at 07:37:32PM +0200, Baurjan Ismagulov wrote: > Hello, Daniel and Ian! > > On Wed, Dec 10, 2003 at 12:17:15PM -0500, Daniel Jacobowitz wrote: > > > This will > > > normally be true, but will fail in cases where the library is > > > controlling visibility in any of various different ways. > > For global variables the sensible default is to use the one in the > > executable. This gets much more fun, of course, for function > > addresses. > > Could you please enlighten me regarding the following, too: > > 1. How can the visibility of a symbol be controlled by the library? Look of visibility in the GNU ld manual. > 2. Why does this get much more fun for function addresses? Because the rules on resolving symbols are much more general than the case of copy relocations, which is quite simple. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer