This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Verification that taking address of a nested function always requires executable stack
- From: "Kevin P. Fleming" <kpfleming at digium dot com>
- To: Ian Lance Taylor <iant at google dot com>, gcc-help at gcc dot gnu dot org
- Date: Thu, 06 Nov 2008 08:09:53 -0600
- Subject: Re: Verification that taking address of a nested function always requires executable stack
- Openpgp: id=05FB8DB2
- References: <491231C9.9030504@digium.com> <m3ljvxeht9.fsf@google.com>
Ian Lance Taylor wrote:
> If you expect to distribute your binaries to computers which you do
> not control, and which may be configured to disallow an executable
> stack, then you should indeed avoid using nested functions, or at
> least avoid taking their address.
Well, our primary distribution is via source, but requiring people who
are going to build from source to deal with this is something we'd
rather avoid. Thanks for the rapid and detailed answer.
--
Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)