Re: Troubles with JIT compiler
Brian Raiter <[email protected]> Fri, 22 Jan 2010 09:19:14 -0800
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
> 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