[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] New object format
From: |
Bean |
Subject: |
Re: [PATCH] New object format |
Date: |
Thu, 6 Aug 2009 01:59:29 +0800 |
Hi,
Update:
Support mach-o object file, now you can compile grub2 in OSX using gcc
4.0 from Xcode. No other tool is needed except gcc and as.
Tested ok with i386-pc and i386-efi.
BTW, here are a list of issues of apple gcc 4.0:
Local jumps with more that one digit (such as 10f, 10b) doesn't work,
this affect the lzma decoder. I change it with symbol label like
lzma_10.
Relocation in code16 segment is trouble, apple cc generate wrong
information sometimes. So use local symbol (L_xx) in 16-bit code.
Line
asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g"
(params->code32_start));
in loader/i386/linux.c generate an error message, i comment it out so
that compilation can continue, so the linux loader would be broken for
the time being.
--
Bean
- Re: [PATCH] New object format,
Bean <=