All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: GRUB2 Build on Mac OS X
Date: Thu, 08 Dec 2005 19:45:29 +0100	[thread overview]
Message-ID: <87u0djmnqu.fsf@xs4all.nl> (raw)
In-Reply-To: <1134059234.15370.23.camel@localhost.localdomain> (Peter Jones's message of "Thu, 08 Dec 2005 11:27:13 -0500")

Peter Jones <pjones@redhat.com> writes:

> On Thu, 2005-12-08 at 13:26 +0100, Marco Gerards wrote:
>
>> It's not acceptable to me to just remove the nested functions because
>> someone broke some unofficial build of gcc.  When an executable stack
>> is not available, there are the following options (as I see them):
>
> I could be wrong, but GCC appears not to have official builds.  For any
> platform.

Right, what I meant to say is an official release.  A documented
feature from gcc was simply discarded.

> That being said, what's the reasoning for using this uncommon and
> lossely defined extension in the first place?  The way GRUB (both 2 and
> Legacy) uses nested functions, it's no better than just having a method
> vector, and certainly not easier to read.   Not only that, but the trend
> going forward is towards *less* support of executable stacks, not more.
> I wouldn't expect that to stop with us and for Apple, especially now
> that there's widespread support for non-executable pages on Intel
> hardware.
>
> For that matter, is there a specific intent to use GNU C rather than
> ANSI/ISO C?  I haven't extensively read the list archives, so feel free
> to point me at them if this has been widely discussed.

It's a GNU feature, GRUB is a GNU project.  And it is widely used in
GRUB 2, we like GNU99 (or at least I do).  So if you are looking at
this from that perspective, it is not that uncommon or weird at all.

> Are you saying you don't want Would you be amicable to patches which
> change code from using nested functions to a more C-like implementation?
> (I don't mean like the patch in my current GRUB Legacy package;
> something cleaner than that hacky approach.)

Right.  If there is no good reason for such thing (some random gcc
hack isn't a good reason for me), I see no reason to change it.

>> Enable the executable stack using:
>> 1) Set some bit in the ELF file so the OS knows we want this
>>   (that's what linux does).
>> 2) Enable it using some function.
>> 3) Creating our own stack.
>
> There's a major point of contention being ignored here.  OS vendors
> don't want to ship executables which require an executable stack.  Full
> stop.

Please give me one good reason why GRUB shouldn't use an executable
stack.  I don't see a good reason besides the more general "We don't
want to have executable stacks at all".

>> So on the apple the right thing to do would be:
>> 
>> 1) Fix gcc so nested functions are not fatal.
>
>>From many points of view, this would not be "fixing" GCC.
>
>> 2) fix GRUB using the methods I described above.
>
> Likewise.

Why wouldn't it be?

Anyways, it would be nice if gcc could support nested functions by
using something else than an executable stack.

Thanks,
Marco




  parent reply	other threads:[~2005-12-08 18:45 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-08  6:10 GRUB2 Build on Mac OS X Andre Smith
2005-12-08 12:26 ` Marco Gerards
2005-12-08 16:27   ` Peter Jones
2005-12-08 18:25     ` Yoshinori K. Okuji
2005-12-08 23:40       ` Peter Jones
2005-12-10  0:18         ` Yoshinori K. Okuji
2005-12-10 14:32           ` Marco Gerards
2005-12-08 18:45     ` Marco Gerards [this message]
2005-12-08 19:10     ` Andrei Warkentin
2005-12-08 20:00       ` Marco Gerards
2005-12-08 20:10         ` Andrei Warkentin
2005-12-08 20:14           ` Marco Gerards
2005-12-08 20:51             ` Andrei Warkentin
2005-12-09 22:49     ` Hollis Blanchard
2005-12-09 23:07       ` Peter Jones
2005-12-09 23:32         ` Marco Gerards
2005-12-10  0:23           ` Yoshinori K. Okuji
2005-12-10 18:52             ` Peter Jones
2005-12-09 23:26       ` Marco Gerards
2005-12-08 15:09 ` Andrei Warkentin
  -- strict thread matches above, loose matches on Subject: below --
2005-12-08 22:01 andre-smith
2005-12-08 23:06 ` Andrei Warkentin
2005-12-09 21:34   ` Marco Gerards
2005-12-08 23:18 ` Andrei Warkentin
2005-12-09 21:40 ` Marco Gerards

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=87u0djmnqu.fsf@xs4all.nl \
    --to=mgerards@xs4all.nl \
    --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.