This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: executable stack in gcc shared libs?
- From: Andrew Haley <aph at redhat dot com>
- To: PaweÅ Sikora <pluto at agmk dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 21 Mar 2008 11:24:53 +0000
- Subject: Re: executable stack in gcc shared libs?
- References: <200803202117.31979.pluto@agmk.net>
PaweÅ Sikora wrote:
> Hi all,
>
> I noticed (readelf -lW/grep) that some gcc libraries require executable stack:
>
> /usr/lib64/libffi.so.4.0.1 GNU_STACK 0x000000 0x0000000000000000
> 0x0000000000000000 0x000000 0x000000 RWE 0x8
> /usr/lib64/libgcj.so.8.0.0 GNU_STACK 0x000000 0x0000000000000000
> 0x0000000000000000 0x000000 0x000000 RWE 0x8
> /usr/lib64/libgmp.so.3.4.2 GNU_STACK 0x000000 0x0000000000000000
> 0x0000000000000000 0x000000 0x000000 RWE 0x8
>
> Is this expected marking or just missed `-z noexecstack` for assembly parts?
I don't know for sure about libgmp, but the others don't need execstack.
Andrew.