PATCH: Add PROVIDE_HIDDEN

Alan Modra amodra@bigpond.net.au
Fri Aug 5 05:13:00 GMT 2005


On Thu, Aug 04, 2005 at 11:58:11AM -0700, H. J. Lu wrote:
> On Thu, Aug 04, 2005 at 10:41:24AM -0700, H. J. Lu wrote:
> > There is one problem. The linker provided symbols used to hidden, now
> > they are global. It is a very bad when some bound symbols have to
> > be provided for DSOs. I should we should make all linker provided
> > symbol hidden for ELF.

I was considering doing something like this myself, but you beat me to
it.

> This patch adds PROVIDE_HIDDEN.

OK, except

> +@node PROVIDE_HIDDEN
> +@subsection PROVIDE_HIDDEN
> +@cindex PROVIDE_HIDDEN
> +Similar to @code{PROVIDE}. But the symbol will be hidden and won't be
> +exported.

you should say that the difference only applies to ELF

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list