Re: GRUB2 Build on Mac OS X

2005-12-10 Thread Marco Gerards
Yoshinori K. Okuji [EMAIL PROTECTED] writes: On Friday 09 December 2005 12:40 am, Peter Jones wrote: Now, the obvious retort to this is that no setuid programs are calling grub, so it's not even one of those cases. That's not a good answer either. I've got one I'd really *like* to call grub

Re: GRUB2 Build on Mac OS X

2005-12-09 Thread Marco Gerards
Andrei Warkentin [EMAIL PROTECTED] writes: On Dec 8, 2005, at 4:01 PM, [EMAIL PROTECTED] wrote: The Mac OS X GCC compiler will not build GRUB2, due static linking at address 0x2000; this error can be confirmed during the configure process. If I could build GRUB2 using the Mac OS X GCC, I

Re: GRUB2 Build on Mac OS X

2005-12-09 Thread Marco Gerards
[EMAIL PROTECTED] writes: Since the GRUB2 tools built using a Linux GCC compiler will suffice at the moment, I can see why the team is not overly concerned with this issue. If GRUB2 is going to be portable(Mac OS X), then some changes will be needed to accomplish this goal. GCC is a GNU

Re: GRUB2 Build on Mac OS X

2005-12-09 Thread Marco Gerards
Peter Jones [EMAIL PROTECTED] writes: Would be alright if we could enable execute permission only on the specific pages needed (as known by GCC)? GCC provides an ENABLE_EXECUTE_STACK macro, but it seems that is not currently used on Linux. It is used on the various BSDs. It would be

Re: GRUB2 Build on Mac OS X

2005-12-09 Thread Yoshinori K. Okuji
On Friday 09 December 2005 12:40 am, Peter Jones wrote: Now, the obvious retort to this is that no setuid programs are calling grub, so it's not even one of those cases. That's not a good answer either. I've got one I'd really *like* to call grub from, and it is pm-hibernate, through

Re: GRUB2 Build on Mac OS X

2005-12-09 Thread Yoshinori K. Okuji
On Saturday 10 December 2005 12:32 am, Marco Gerards wrote: Wouldn't it be possible to use some other memory than the stack to implement trampolines? It's documented quite well: By modifying GCC and a dynamic linker, it is possible. Anyways, my primary concerns are making things work and

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Andrei Warkentin
Hello, There is another issue with GRUB2 on OS X which I am not sure has been brought up yet. Right now, AFAIK (but I haven't tested it), GRUB2 (the part that runs from OpenFrimware) can be built with a bootstrap powerpc-elf-targetted GCC hosted on OS X. However, the local GRUB2 binary

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Marco Gerards
Andrei Warkentin [EMAIL PROTECTED] writes: Hi Andrei, There is another issue with GRUB2 on OS X which I am not sure has been brought up yet. Right now, AFAIK (but I haven't tested it), GRUB2 (the part that runs from OpenFrimware) can be built with a bootstrap powerpc-elf-targetted GCC

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Marco Gerards
Andrei Warkentin [EMAIL PROTECTED] writes: I understand (still had my mind on GRUB 1 :)) - then looks like two GCC installations will be required to construct GRUB2 on OS X - one to generate OS X-hosted GRUB utilities (which will be Mach-O files), and one to generate ELF files that will be

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Andrei Warkentin
Hmm, I just tried ./configure-ing.I have my powerpc-linux crosscompiler tools as powerpc-linux-{gcc, ld, ar, objcopy, etc}. It seems the configuration utility makes no distinction between compiler toolchain to make system utilities and compiler chain to make bootable executables.Naturally, this

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread andre-smith
The Mac OS X GCC compiler will not build GRUB2, due static linking at address 0x2000; this error can be confirmed during the configure process. If I could build GRUB2 using the Mac OS X GCC, I would be able to build GRUB2 images from Mac OS X. The binary I attempted the build using the cross

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Andrei Warkentin
On Dec 8, 2005, at 4:01 PM, [EMAIL PROTECTED] wrote: The Mac OS X GCC compiler will not build GRUB2, due static linking at address 0x2000; this error can be confirmed during the configure process. If I could build GRUB2 using the Mac OS X GCC, I would be able to build GRUB2 images from

Re: GRUB2 Build on Mac OS X

2005-12-08 Thread Peter Jones
On Thu, 2005-12-08 at 19:25 +0100, Yoshinori K. Okuji wrote: 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. I'd like to hear your opinion as a distributor about the trend of prohibiting