[ERRATUM][PATCH] Fix _dl_ldsopath when no slash in INTERP path
Mike Frysinger
vapier at gentoo.org
Mon Jan 2 08:03:56 UTC 2012
On Sunday 01 January 2012 03:57:37 Ignacy Gawędzki wrote:
> On Sat, Dec 31, 2011 at 06:12:00PM -0500, thus spake Mike Frysinger:
> > On Thursday 22 December 2011 19:19:01 Ignacy Gawędzki wrote:
> > > When the INTERP program header contains a simple name with no slash,
> > > don't crash trying to dereference a NULL pointer, but rather set
> > > _dl_ldsopath to ".".
> >
> > what is your actual use case ?
>
> I'm testing a dynamic loader. So I have a binary compiled with
> -Wl,-Iloader.so and have a symlink called loader.so in the current
> directory pointing to the actual loader I want to use. When the symlink
> points to uClibc's loader, the program crashes.
your proposed fix was more complicated than necessary. i've checked in some
simpler code. please test and verify (but it seems to work for me).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120102/e89b6dd6/attachment.asc>
More information about the uClibc
mailing list