This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optind


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]