All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Add __enable_execute_stack() if required
Date: Fri, 19 Sep 2008 09:05:28 +0200	[thread overview]
Message-ID: <48D34F38.6040504@t-online.de> (raw)
In-Reply-To: <gas5p8$jlr$1@ger.gmane.org>

walt wrote:
> Robert Millan wrote:
>> On Tue, Sep 16, 2008 at 09:42:50PM +0200, Christian Franke wrote:
>>> Some gcc versions generate a call to __enable_execute_stack() in
>>> trampolines for nested functions. This is the case for new Cygwin 
>>> gcc-4.3.2.
>>>
>>> Other GRUB2 target platforms may be affected - the following files in
>>> 'gcc-4.3.2/gcc/config' source directory contains implementations of 
>>> this
>>> function for libgcc:
>>>
>>> alpha/osf.h
>>> darwin.h
>>> netbsd.h
>>
>> I recall this was also an issue for NetBSD indeed.  Could someone 
>> confirm it
>> fixes the problem there?
>
> It does fix the problem on NetBSD, thanks Christian.
>

You're welcome. Thanks for testing.

Patch committed.

If more such functions are necessary in the future, it is probably 
better to collect those in some libgcc.a replacement module.
This would be the case if e.g. for the 64-bit integer division. On 
32-bit architectures, gcc typically generates a call to __divdi3().

Christian




      reply	other threads:[~2008-09-19  7:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-16 19:42 [PATCH] Add __enable_execute_stack() if required Christian Franke
2008-09-17 13:58 ` Robert Millan
2008-09-17 19:06   ` Christian Franke
2008-09-18  0:01   ` walt
2008-09-19  7:05     ` Christian Franke [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=48D34F38.6040504@t-online.de \
    --to=christian.franke@t-online.de \
    --cc=grub-devel@gnu.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.