Noticed it when was debugging bug #566118. gcc is unconditionally built with -fno-PIE -no-pie which means we lose TEXTREL warning. Last full patch: https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/binutils/2.25.1/66_all_binutils-2.22.52.0.1-warn-textrel.patch?revision=1.1&view=markup First partial patch: https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/binutils/2.26.1/00_all_0004-ld-always-warn-about-textrels-in-files.patch?view=markup Note how it used to report warning for both shared objects and executables.
Created attachment 521522 [details, diff] binutils-2.30-restore-TEXTREL-warnings.patch
Added to gentoo/binutils-2.29.1, gentoo/binutils-2.30, and gentoo/binutils-9999 branch
Filed upstream bug to upstream our extension: https://sourceware.org/PR22909