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


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

Re: [PATCH] Limited export of dynamic syms (elf32)


"H . J . Lu" wrote:
> 
> On Mon, Aug 20, 2001 at 10:20:01AM +0200, Eirik Byrkjeflot Anonsen wrote:
> >
> > I've tested it on a shared library with ld 2.9.5, and the symbols bound
> > to "local:" seems to disappear from the dynamic symbol table.  I'll
> > have to do some more testing to be absolutely sure, but it looks
> > promising.
> 
> Please don't use ld 2.9.5 as a reference linker. All kinds of bugs have
> been fixed since 2.9.5.
> 
> >
> > Maybe it would be a good idea to add
> > @cindex limiting export of dynamic symbols
> > or something like that to the @node VERSION in ld.texinfo.
> > That might make it possible to discover that the ability is there.
> 
> I added some doc for that. Please check out the current binutils. All
> the features of symbol versioning are documented there.
> 
> H.J.


I have had a short look at it, and I still don't see how someone
wondering how to limit the export of dynamic symbols is supposed
to discover how to do this.  While I'm still thinking that adding
something to the index to that effect is a good idea, I've also
got a different suggestion:

When I'm looking for material on exporting dynamic symbols, I
easily find the option -E/--export-dynamic, which states that
it will cause all symbols to be exported.  How about adding
a short statement here, e.g.:
"It is possible to export only a subset of the symbols by binding
to local scope using symbol versioning.  @xref{VERSION}."

eirik


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