Re: [PATCH] to make grub2 compile on NetBSD

2008-02-12 Thread Yoshinori K. Okuji
On Wednesday 13 February 2008 00:56, walt wrote: > This is a link-time error, and I have no clue how to detect it at > configure time. Please show me how you would do it. I think the following would be sufficient: 1. Find small code which produces a reference to __enable_execute_stack even with

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-12 Thread walt
On Tue, 2008-02-12 at 08:22 +0100, Yoshinori K. Okuji wrote: > On Monday 11 February 2008 23:44, walt wrote: > > On Mon, 2008-02-04 at 16:56 +0100, Marco Gerards wrote: > > > walt <[EMAIL PROTECTED]> writes: > > > > NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, > > > > but t

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-11 Thread Yoshinori K. Okuji
On Monday 11 February 2008 23:44, walt wrote: > On Mon, 2008-02-04 at 16:56 +0100, Marco Gerards wrote: > > walt <[EMAIL PROTECTED]> writes: > > > NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, > > > but this is useless for a free-standing executable like grub. Define > > > a

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-11 Thread walt
On Mon, 2008-02-04 at 16:56 +0100, Marco Gerards wrote: walt <[EMAIL PROTECTED]> writes: > NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, > but this is useless for a free-standing executable like grub. Define > a dummy function in lieu of libgcc to supply __enable_execute

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-04 Thread Marco Gerards
walt <[EMAIL PROTECTED]> writes: > Robert Millan wrote: walt<[EMAIL PROTECTED]> writes: > NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, > but this is useless for a free-standing executable like grub. Define > a dummy function in lieu of libgcc to supp

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-04 Thread Robert Millan
On Mon, Feb 04, 2008 at 02:55:34PM -0800, walt wrote: > > Okay, thanks. Does the [__NetBSD__] token denote an #ifdef? How > would I indicate a patch for, say, Net/Free/Dragonfly BSD's at the > same time? No idea, you just caught me on this ;-) Anyway, if we come to this, maybe it is better to

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-04 Thread walt
Robert Millan wrote: walt<[EMAIL PROTECTED]> writes: NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, but this is useless for a free-standing executable like grub. Define a dummy function in lieu of libgcc to supply __enable_execute_stack. Second try: Make NetB

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-04 Thread Robert Millan
On Mon, Feb 04, 2008 at 12:21:11PM -0800, walt wrote: > > On Mon, 2008-02-04 at 16:56 +0100, Marco Gerards wrote: > > walt <[EMAIL PROTECTED]> writes: > > > > > NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, > > > but this is useless for a free-standing executable like grub.

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-04 Thread Marco Gerards
walt <[EMAIL PROTECTED]> writes: > On Mon, 2008-02-04 at 16:56 +0100, Marco Gerards wrote: >> walt <[EMAIL PROTECTED]> writes: >> >> > NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, >> > but this is useless for a free-standing executable like grub. Define >> > a dummy funct

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-04 Thread walt
On Mon, 2008-02-04 at 16:56 +0100, Marco Gerards wrote: > walt <[EMAIL PROTECTED]> writes: > > > NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, > > but this is useless for a free-standing executable like grub. Define > > a dummy function in lieu of libgcc to supply __enable

Re: [PATCH] to make grub2 compile on NetBSD

2008-02-04 Thread Marco Gerards
walt <[EMAIL PROTECTED]> writes: > NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, > but this is useless for a free-standing executable like grub. Define > a dummy function in lieu of libgcc to supply __enable_execute_stack. Great, thanks! Can you send in a changelog entry

[PATCH] to make grub2 compile on NetBSD

2008-02-03 Thread walt
NetBSD's gcc wants libgcc and libc to define __enable_execute_stack, but this is useless for a free-standing executable like grub. Define a dummy function in lieu of libgcc to supply __enable_execute_stack. Index: include/grub/mm.h ===