Use PIE_SPEC/NO_PIE_SPEC for crtend.o/crtendS.o
commit29a2cef8fc18e275a2d7f2b11b7b04113f05e770
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Jun 2015 20:50:57 +0000 (29 20:50 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Jun 2015 20:50:57 +0000 (29 20:50 +0000)
tree5b4549cb6da528c558a0f7768041b91962f40bdd
parentd9ba0dd6af146ac43f52cad4fcfaf4c56b2210cf
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225144 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/gnu-user.h