]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Always return pathname in dl_iterate_phdr's dlpi_name, as Linux does
authorEd Maste <emaste@FreeBSD.org>
Thu, 9 Oct 2014 20:39:18 +0000 (20:39 +0000)
committerEd Maste <emaste@FreeBSD.org>
Thu, 9 Oct 2014 20:39:18 +0000 (20:39 +0000)
commit54ac10780f0320fa7e1d79112d974279545503a6
treeb626f9c91a4b16d96487589a2a113f099113a663
parente03159ea6909d2ac340b7a84832b430b7e33e627
Always return pathname in dl_iterate_phdr's dlpi_name, as Linux does

Linux LD_ITERATE_PHDR(3):
    The dlpi_name field is a null-terminated string giving the
    pathname from which the shared object was loaded.

That functionality is much more useful than returning just the short
name.

Approved by: kan
Sponsored by: The FreeBSD Foundation
libexec/rtld-elf/rtld.c