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]
Other format: [Raw text]

Re: PATCH: Add _bfd_elf_provide_symbol


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.


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