]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Always return pathname in dl_iterate_phdr's dlpi_name, as Linux does
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 Nov 2014 21:52:31 +0000 (21:52 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 Nov 2014 21:52:31 +0000 (21:52 +0000)
commite7596db2e3408eba3e114bfa5cc15b32bd967e68
tree13005874e06791b045e978139d69f58545efa9aa
parent45b9227a19dff746c773acc5ae6e5c51600c85f0
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.

Update dl_iterate_phdr(3) to follow r272842

MFC of r272842 and r272848

git-svn-id: svn://svn.freebsd.org/base/stable/10@274531 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/dl_iterate_phdr.3
libexec/rtld-elf/rtld.c