Hello, On Thu, 13 Oct 2005 22:22:39 -0400, Steve M. Robbins wrote: > You sent this to an existing bug dealing with failures under grsec > kernel. Did you do so on purpose?
Yes. The error message: cannot enable executable stack as shared object requires: <some reason> indicates that the run-time linker (/lib/ld-linux.so.2) tried to make the stack executable (as requested by PT_GNU_STACK ELF header of a shared library, libgmp.so.3 in our case), but failed due to restrictions imposed by grsec (actually, by PaX). The linker treats such a failure as a fatal error (see elf/dl-load.c:1342 in the glibc source). > Does your patch fix the reported problem of this bug? Yes. libgmp does not need an executable stack to operate properly, so the patch appends -Wa,--noexecstack switch to assembler command-line (of course, it checks if such a option is supported), thus, the library gets proper (RW) PT_GNU_STACK marker. P.S. Some information about PT_GNU_STACK thing can be found here: http://www.redhat.com/f/pdf/rhel/WHP0006US_Execshield.pdf https://www.redhat.com/archives/fedora-devel-list/2005-March/msg00460.html http://lists.gnu.org/archive/html/axiom-developer/2003-11/msg00165.html -- All science is either physics or stamp collecting.
signature.asc
Description: Digital signature

