This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use PIE_SPEC/NO_PIE_SPEC for crtend.o/crtendS.o
- From: Joseph Myers <joseph at codesourcery dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Rainer Orth <ro at cebitec dot uni-bielefeld dot de>, Magnus Granberg <zorry at gentoo dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 29 Jun 2015 20:48:30 +0000
- Subject: Re: [PATCH] Use PIE_SPEC/NO_PIE_SPEC for crtend.o/crtendS.o
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOqDnrUw06EO06r8kAgoC0kOO36rH+qZ4iE=Oad-hFK0Xw at mail dot gmail dot com> <20150628140918 dot GA790 at gmail dot com>
On Sun, 28 Jun 2015, H.J. Lu wrote:
> > Here is a patch. OK for trunk?
> >
> > Thanks.
>
> I'd like to check in this patch. Any comments, objections?
>
> Thanks.
>
> H.J.
> > From 50bebf531193c18efb0982ac119694aa9f650e44 Mon Sep 17 00:00:00 2001
> > From: "H.J. Lu" <hjl.tools@gmail.com>
> > Date: Thu, 25 Jun 2015 03:04:56 -0700
> > Subject: [PATCH 1/2] 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.
OK.
--
Joseph S. Myers
joseph@codesourcery.com