This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Should elf/tst-dlopen-aout.c fail when compiled as PIE?


On Fri, Mar 6, 2015 at 3:05 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Fri, Mar 6, 2015 at 3:00 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> It's clear from the content of the test that it cannot test what it's
>> intended to test unless the file it passes to dlopen it an ET_EXEC.  So if
>> you want to build the test itself as PIE, then you need to change it to
>> open some file other than itself.
>
> Thanks.  I will handle it properly.

I think adding

  CFLAGS-tst-dlopen-aout.c += -fno-pie

or some such may be the right fix.

You want to have ET_EXEC, and it's easiest to guarantee ET_EXEC if you
build it yourself, and the test itself will make a good ET_EXEC to
test with -- no reason to build an extra ET_EXEC.


-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]