This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #17841]: Build failure if compiler defaults to PIE
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 28 May 2015 09:04:33 -0700
- Subject: Re: [PATCH] [BZ #17841]: Build failure if compiler defaults to PIE
- Authentication-results: sourceware.org; auth=none
- References: <20150528130523 dot GA16533 at gmail dot com> <20150528145937 dot GH23204 at vapier> <CAMe9rOpqSF0=1RgPoqXgNhatzZJMJQNYXggPwTjiNJ36fN-d-Q at mail dot gmail dot com> <20150528155733 dot GK23204 at vapier>
On Thu, May 28, 2015 at 8:57 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> On 28 May 2015 08:06, H.J. Lu wrote:
>> On Thu, May 28, 2015 at 7:59 AM, Mike Frysinger wrote:
>> > On 28 May 2015 06:05, H.J. Lu wrote:
>> >> To support building glibc with GCC 6 configured with --enable-default-pie,
>> >> which generates PIE by default, we need to build programs as PIE. But
>> >> elf/tst-dlopen-aout must not be built as PIE since it tests dlopen on
>> >> ET_EXEC file and PIE is ET_DYN.
>> >
>> > i think you're going to need more patches than this to make it work. Gentoo
>>
>> What did you mean by "make it work"? I successfully built glibc with GCC 6
>> default to PIE and there were no regressions.
>
> did you do it for x86 ? if you read the nosysenter patch below, it describes in
> detail the problems with x86 and building as PIE.
That is a separate issue. I am expecting some targets must be
updated to support PIE as default.
--
H.J.