All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Raiter <breadbox@muppetlabs.com>
To: linux-assembly@vger.kernel.org
Subject: Re: Troubles with JIT compiler
Date: Fri, 22 Jan 2010 09:19:14 -0800	[thread overview]
Message-ID: <19289.56850.385830.564528@eidolon.muppetlabs.com> (raw)
In-Reply-To: <cb4d391b1001220245n61ff839elc19851404017f4a3@mail.gmail.com>

> 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

      parent reply	other threads:[~2010-01-22 17:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22  4:12 Troubles with JIT compiler Scott Sibley
2010-01-22  5:26 ` Robert Plantz
2010-01-22  6:04   ` Scott Sibley
2010-01-22  7:01     ` Robert Plantz
2010-01-22  7:16       ` Scott Sibley
2010-01-22 10:45         ` Scott Sibley
2010-01-22 16:50           ` Robert Plantz
2010-01-22 17:19           ` Brian Raiter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19289.56850.385830.564528@eidolon.muppetlabs.com \
    --to=breadbox@muppetlabs.com \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.