[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: |
Wed, 15 Jul 2009 05:02:39 +0800 |
Hi,
Ok, find the bug for elf converter. elf and pe are both ok now.
On Tue, Jul 14, 2009 at 11:49 PM, Bean<address@hidden> wrote:
> Hi,
>
> This patch implement a new object format, the advantages are:
>
> Reduce size dramatically, some result:
>
> Size of all modules:
>
> original: 645575
> new: 519093
>
> Dynamic loader:
>
> original
> text data bss dec hex filename
> 412 0 0 412 19c kernel_img-kern___target_cpu__dl.o
> 3052 0 2064 5116 13fc kernel_img-kern_dl.o
>
> new:
> text data bss dec hex filename
> 2272 0 2064 4336 10f0 kernel_img-kern_dl.o
>
> Greatly simplify the build process:
>
> 1, compile *.c, *.S to *.o
> 2, use grub-mkmod to merge *.o file to mod
> 3, use grub-symdb to maintain module dependence
>
> so there is no pre-* mod-* def-* und-* anymore.
>
> grub-mkmod support both pe and elf format, no need to convert with
> grub-pe2elf.
>
> BTW, this patch breaks other platform. And it seems there is some bug
> in elf->mod converter. But the pe->mod works quite nice, I can load
> graphic menu and even run osdetect script with lua.
>
> --
> Bean
>
--
Bean
obj.diff
Description: Text Data
- [PATCH] New object format, Bean, 2009/07/14
- please stop this, Robert Millan, 2009/07/14
- Re: please stop this, Pavel Roskin, 2009/07/14
- Re: please stop this, Bean, 2009/07/14
- Re: please stop this, Robert Millan, 2009/07/16
- Re: please stop this, Vladimir 'phcoder' Serbinenko, 2009/07/16
- Re: please stop this, Robert Millan, 2009/07/18
- Re: please stop this, Vladimir 'phcoder' Serbinenko, 2009/07/18
Re: [PATCH] New object format,
Bean <=
Re: [PATCH] New object format, Isaac Dupree, 2009/07/18
- Re: [PATCH] New object format, Bean, 2009/07/19
- Re: [PATCH] New object format, Bean, 2009/07/21
- Re: [PATCH] New object format, Bean, 2009/07/22
- Re: [PATCH] New object format, Javier Martín, 2009/07/22
- Re: [PATCH] New object format, Bean, 2009/07/22
- Re: [PATCH] New object format, Javier Martín, 2009/07/22
- Re: [PATCH] New object format, Bean, 2009/07/22
- Re: [PATCH] New object format, Bean, 2009/07/25
- Re: [PATCH] New object format, Bean, 2009/07/27