This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Add _bfd_elf_provide_symbol
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Michael Matz <matz at suse dot de>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 25 Apr 2005 07:54:58 -0700
- Subject: Re: PATCH: Add _bfd_elf_provide_symbol
- References: <20050322031617.GD27445@bubble.modra.org> <20050322041855.GA22732@lucon.org> <20050322050314.GE27445@bubble.modra.org> <20050322170758.GA1330@lucon.org> <20050322204903.GA4693@lucon.org> <20050322224422.GA6367@lucon.org> <20050323020457.GM30711@bubble.modra.org> <20050323021109.GA19226@nevyn.them.org> <20050323041924.GA11208@lucon.org> <Pine.LNX.4.58.0504250625140.20714@wotan.suse.de>
On Mon, Apr 25, 2005 at 06:53:47AM +0200, Michael Matz wrote:
> Hi HJ,
>
> On Tue, 22 Mar 2005, H. J. Lu wrote:
>
> > On Tue, Mar 22, 2005 at 09:11:09PM -0500, Daniel Jacobowitz wrote:
> > > On Wed, Mar 23, 2005 at 12:34:57PM +1030, Alan Modra wrote:
> > > > On Tue, Mar 22, 2005 at 02:44:22PM -0800, H. J. Lu wrote:
> > > > > Here is an upated patch. _bfd_elf_provide_symbol should presever
> > > > > st_other. Also it needs to set forced_local to 1. Otherwise, we will
> > > > > get global hidden symbols. We don't need those array symbols for
> > > > > shared libraries.
> > > >
> > > > Looks good. OK for mainline, and the branch too unless Daniel
> > > > disagrees.
> > >
> > > That's fine.
> >
> > since it can be used to provide section start/end symbols.
> >
> > It won't apply to 2.16 since it depends on some other changes in
> > mainline.
>
> This patch introduces a regression for linking code with older glibcs on
> alpha, due to this error message:
Did you say it only happens with the older glibc? What does the new
glibc do on alpha?
> I'm not 100% sure what the best alternative would be. I think simplest
> would be to define it to the start of .got, like in the below patch. It
> works for me on alpha, but I don't know if that's a sane approach, or if
> .got is available everywhere (I guess with static executables it's not).
>
Do you have a simple testcase for alpha which I can run on Linux/i386?
H.J.