[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Decompressor is too big" building i386-pc image on Cygwin
From: |
Andrey Borzenkov |
Subject: |
Re: "Decompressor is too big" building i386-pc image on Cygwin |
Date: |
Mon, 23 Dec 2013 18:55:50 +0400 |
On Mon, Dec 23, 2013 at 6:00 PM, Vladimir 'φ-coder/phcoder' Serbinenko
<address@hidden> wrote:
> On 23.12.2013 13:42, Andrey Borzenkov wrote:
>> address@hidden ~/grub-2.02~beta1
>> $ ./grub-mkimage -d grub-core -O i386-pc -o grub.img
>> ./grub-mkimage: error: Decompressor is too big.
>>
>> address@hidden ~/grub-2.02~beta1
>> $ ls -l grub-core/*_decompress.img
>> -rwxr-xr-x 1 bor None 3604 Dec 23 15:53 grub-core/lzma_decompress.img
>>
>> address@hidden ~/grub-2.02~beta1
>> $
>>
>> Well, 3604 is indeed more than size it checks (0x9000 - 0x8200 ==
>> 3584). As I definitely can use beta1 on Linux for the same platform,
>> it looks like Cygwin related?
>>
>
> It has a .rdata section with following contents:
> Contents of section .rdata:
> 9000 4743433a 2028474e 55292034 2e382e32 GCC: (GNU) 4.8.2
> 9010 00000000
> We'll need to find an option to inhibit this
Even if I manually remove .ident "GCC: (GNU) 4.8.2" from generated
assembly file file, it still generates empty .idata section:
address@hidden ~/grub-2.02~beta1
$ objdump -h grub-core/lzma_decompress.image.exe
grub-core/lzma_decompress.image.exe: file format pei-i386
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000b30 00008200 00008200 000001e0 2**5
CONTENTS, ALLOC, LOAD, CODE
1 .idata 00000014 00009000 00009000 00000de0 2**2
CONTENTS, ALLOC, LOAD, DATA
address@hidden ~/grub-2.02~beta1
$ objdump -s -j .idata grub-core/lzma_decompress.image.exe
grub-core/lzma_decompress.image.exe: file format pei-i386
Contents of section .idata:
9000 00000000 00000000 00000000 00000000 ................
9010 00000000 ....
address@hidden ~/grub-2.02~beta1