The behavior affects ssldump, which defines ROOT=./ in its Makefile Reproducible: Always Steps to Reproduce: 1. ROOT=/tmp ld -o ssldump /usr/lib/crt1.o /usr/lib/crti.o /work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/crtbegin.o -L/work/benda/gentoo/usr/lib -L/work/benda/gentoo/usr/lib -L/work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3 debug.o r_assoc.o r_bitfield.o r_data.o r_errors.o r_list.o r_replace.o r_time.o network.o pcap-snoop.o proto_mod.o tcpconn.o tcppack.o null_analyze.o ciphersuites.o ssl.enums.o ssl_analyze.o ssl_rec.o ssldecode.o sslprint.o sslxprint.o -O1 -lssl -lcrypto -lpcap -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/crtend.o /usr/lib/crtn.o && readelf -d ssldump | grep RPATH 0x0000000f (RPATH) Library rpath: [/work/benda/gentoo/usr/i686-pc-linux-gnu/lib/gcc:/work/benda/gentoo/usr/i686-pc-linux-gnu/lib] 2. ld -o ssldump /usr/lib/crt1.o /usr/lib/crti.o /work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/crtbegin.o -L/work/benda/gentoo/usr/lib -L/work/benda/gentoo/usr/lib -L/work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3 debug.o r_assoc.o r_bitfield.o r_data.o r_errors.o r_list.o r_replace.o r_time.o network.o pcap-snoop.o proto_mod.o tcpconn.o tcppack.o null_analyze.o ciphersuites.o ssl.enums.o ssl_analyze.o ssl_rec.o ssldecode.o sslprint.o sslxprint.o -O1 -lssl -lcrypto -lpcap -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /work/benda/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/crtend.o /usr/lib/crtn.o && readelf -d ssldump | grep RPATH 0x0000000f (RPATH) Library rpath: [/work/benda/gentoo/usr/i686-pc-linux-gnu/lib/gcc:/work/benda/gentoo/usr/i686-pc-linux-gnu/lib:/work/benda/gentoo/lib:/work/benda/gentoo/usr/lib]
This apparently never hit anything but this, I'm closing this as we would have to revisit it.