rtld: Allows return pathname in dl_iterate_phdr dlpi_name
authorJohn Marino <draco@marino.st>
Sun, 30 Nov 2014 10:06:04 +0000 (11:06 +0100)
committerJohn Marino <draco@marino.st>
Sun, 30 Nov 2014 16:50:50 +0000 (17:50 +0100)
commit9c47603718642464b4e3cdb11ad4c9e1c964b60a
tree1074dd714c3f12f39abd3b55a271fa6394f5f399
parentb9f3c495b063bed62494cc47d09cea0bea5691bd
rtld: Allows return pathname in dl_iterate_phdr dlpi_name

This is the behavior of Linux and also of FreeBSD since October 2014.
Until this point, dlpi_name returned the short name of the object unless
it wasn't defined, so the fallback was to return the pathname.

Returning the pathname in all cases is considered more useful and matches
the definition of Linux.

Taken from: FreeBSD svn 272842 (9 Oct 2014)
libexec/rtld-elf/rtld.c