[PATCH] Fix dynamic linker issue with bind-now
Maciej W. Rozycki
macro@linux-mips.org
Mon Mar 23 20:08:00 GMT 2015
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
More information about the Libc-alpha
mailing list