This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RS6000] linux startfile/endfile
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Alan Modra <amodra at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Aug 2017 17:12:07 -0500
- Subject: Re: [RS6000] linux startfile/endfile
- Authentication-results: sourceware.org; auth=none
- References: <20170811025326.GL16312@bubble.grove.modra.org>
On Fri, Aug 11, 2017 at 12:23:26PM +0930, Alan Modra wrote:
> These need to match the gnu-user.h definitions to support
> --enable-default-pie. Otherwise we end up linking the wrong startup
> files when defaulting to PIE.
>
> I've just copied the HAVE_LD_PIE variants as we don't need the
> !HAVE_LD_PIE variant. (In fact, gnu-user.h doesn't need them either.)
>
> Bootstrapped and regression tested powerpc64-linux and
> powerpc64le-linux. OK?
Okay for trunk, and backports if you need/want them (do you?) Thanks,
Segher
> PR target/81170
> PR target/81295
> * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
> match gnu-user.h startfile.
> (ENDFILE_LINUX_SPEC): Similarly.