This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] Fix dynamic linker issue with bind-now


On Mon, 2 Mar 2015, Mike Frysinger wrote:

> > +tst-split-dynreloc-ENV = LD_BIND_NOW=1
> 
> do you need to use the env var ?  pass -Wl,-z,now via LDFLAGS instead ?

 FWIW the two arrangements are not equivalent AFAIK, a binary created with 
`-Wl,-z,now' may not be the same as one made without that option (beyond 
the obvious difference coming from the absence or the presence of the 
DT_BIND_NOW dynamic tag), and consequently different ld.so's execution 
paths may be exercised respectively.

 NB this static linker's property may be target specific and I haven't 
looked into the details of the issue concerned here, so this observation 
may not be relevant here.  I think it's worth noting anyway just in case, 
as I had unpleasant surprises in the past with it, so it would be good to 
save other people from falling into this trap too.

  Maciej


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