From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Raiter Subject: Re: Troubles with JIT compiler Date: Fri, 22 Jan 2010 09:19:14 -0800 Message-ID: <19289.56850.385830.564528@eidolon.muppetlabs.com> References: <1264137975.1983.30.camel@bob-desktop> <1264143669.1983.38.camel@bob-desktop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-assembly-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: linux-assembly@vger.kernel.org > After someone's tip, I found a solution to this. Passing the linker > '-z execstack' made it run, no problem. It's funny that Linux didn't > complain about it, but rather just seg-faulted. But the segfault is the complaint. What else would you hope for? In general neither the compiler nor the linker has enough information to reliably warn you of the issue before runtime. It may also be worth noting that making stack memory non-executable by default is a relatively recent change to Linux, done to ameliorate the effectiveness of stack-based code exploits. b