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: [RFC][PATCH] make PowerPC64 default to nonexecutable stack


On Wed, Nov 3, 2010 at 16:41, Ryan Arnold <rsa@us.ibm.com> wrote:
> The configure fragment is there to select the correct test-case based on
> the default of the compiler used to build GLIBC. ÂThe testcase
> elf/check-execstack.c assumes PT_GNU_STACK will be present and will
> report an error if it finds otherwise. The testcase
> sysdeps/powerpc/powerpc64/check-execstack.c assumes PT_GNU_STACK will
> not be present and the test binary's stack permissions are checked to
> see if the stack is nonexecutable.

You just include the stackinfo.h header and check whether it PF_X is
set.  If set, do today's test.  If not, then don't fail if there is no
such program header entry.  No need for a configure check.


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