This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Pass -no-pie to GCC only if GCC defaults to PIE [BZ #22614]
- From: Carlos O'Donell <carlos at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 18 Dec 2017 11:43:07 -0800
- Subject: Re: [PATCH] Pass -no-pie to GCC only if GCC defaults to PIE [BZ #22614]
- Authentication-results: sourceware.org; auth=none
- References: <20171216022921.GA24140@gmail.com>
On 12/15/2017 06:29 PM, H.J. Lu wrote:
> After --enable-static-pie is added to configure, libc_cv_pie_default is
> set to yes when either --enable-static-pie is used to configure glibc
> or GCC defaults to PIE. We should set no-pie-ldflag to -no-pie, which
> is supported on GCC 6 and later, only if GCC defaults to PIE, not when
> --enable-static-pie is used to configure glibc.
>
> Tested on x32 with --enable-static-pie using GCC 5 and without
> --enable-static-pie using GCC 7.
>
> OK for master?
LGTM.
--
Cheers,
Carlos.