Use PIE_SPEC/NO_PIE_SPEC for crtend.o/crtendS.o
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 29 Jun 2015 20:50:57 +0000 (20:50 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 29 Jun 2015 20:50:57 +0000 (13:50 -0700)
commit9b552079a19f94b589458f8bdc62a15a27523748
tree5b4549cb6da528c558a0f7768041b91962f40bdd
parent24167c42e62564c28c3e1e1159ee78ee6a52a86f
Use PIE_SPEC/NO_PIE_SPEC for crtend.o/crtendS.o

We need to link with crtend.o and crtendS.o properly for GCC configured
to generate PIE by default.

* config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.

From-SVN: r225144
gcc/ChangeLog
gcc/config/gnu-user.h