[PATCH] [BZ #17841]: Build failure if compiler defaults to PIE
H.J. Lu
hjl.tools@gmail.com
Fri May 29 09:19:00 GMT 2015
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.
I filed a GCC bug against cleanup block under PIE:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66334
--
H.J.
More information about the Libc-alpha
mailing list