adapt dynamic linker for new binutils versions that omit DT_RPATH
authorRich Felker <dalias@aerifal.cx>
Sun, 23 Nov 2014 21:17:57 +0000 (16:17 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 30 Mar 2015 05:41:33 +0000 (01:41 -0400)
commit5c34041293ae1c8aa2ddbd27eca662652f56b790
treebc5218128bdbf03c1a3931ac97be96a0c4dc0263
parent395e409cc0b89faeaae8d701a18105d020f7aade
adapt dynamic linker for new binutils versions that omit DT_RPATH

the new DT_RUNPATH semantics for search order are always used, and
since binutils had always set both DT_RPATH and DT_RUNPATH when the
latter was used, processing only DT_RPATH worked fine. however, recent
binutils has stopped generating DT_RPATH when DT_RUNPATH is used,
which broke support for this feature completely.

(cherry picked from commit d8dc2b7c0289b12eeef4feff65e3c918111b0f55)
src/ldso/dynlink.c