This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [patch ping] libffi/boehm-gc/crt files executable stack (missing .note.GNU-stack on .o files)
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Matthias Klose <doko at ubuntu dot com>, GCJ-patches <java-patches at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Jul 2007 12:58:15 +0100
- Subject: Re: [patch ping] libffi/boehm-gc/crt files executable stack (missing .note.GNU-stack on .o files)
- References: <468CCD47.20502@ubuntu.com> <20070712115434.GE2063@devserv.devel.redhat.com>
Jakub Jelinek writes:
> On Thu, Jul 05, 2007 at 12:51:51PM +0200, Matthias Klose wrote:
> > The following patch (taken from the redhat/gcc-4_1-branch) adds .note.GNU-stack
> > sections for gcc's crt files, libffi and boehm-gc.
> >
> > sent first here: http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00948.html
> >
> > Updated in the patch is:
> >
> > 2007-05-11 Daniel Jacobowitz <dan@debian.org>
> >
> > * src/arm/sysv.S: Fix ARM comment marker.
> >
> > Jakub, is this patch necessary/wanted in the FSF sources?
>
> Yes, except perhaps the ppc64 and ia64 bits. There it is ambiguous whether
> PT_GNU_STACK segments are desirable or not (varries between upstream and
> distros) and recent changes in binutils on ia64 and ppc64 assume by
> default non-executable stack whe .note.GNU-stack section is not present,
> so explicit .note.GNU-stack with "x" needs to be used to force
> executable PT_GNU_STACK.
But why? libffi doesn't need an executable stack, and libgcj
definitely doesn't want it.
Andrew.