This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: (hppa-linux) simple testcase for binutils visibility problem
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Randolph Chung <randolph at tausq dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 13 Nov 2002 01:01:51 -0500 (EST)
- Subject: Re: (hppa-linux) simple testcase for binutils visibility problem
On Tue, 12 Nov 2002, Randolph Chung wrote:
> > tc-hppa.h:tc_frob_symbol rips out unused symbols. Don't ask me why,
> > but it seems a reasonable thing to do.
>
> Alan, pardon the naive question, but why is it a 'reasonable' thing to
> do? it seems to me that you should be able to declare the visibility of
> an undefined symbol in one object, and link it with the definition of
> the symbol in another and have the visibility information 'merged' when
> the objects are linked together.
Which is in fact what gcc-3.2.x does and gcc-3.3 will do. See
gcc/mklibgcc.in, search for .hidden.
brgds, H-P