* "Decompressor is too big" building i386-pc image on Cygwin
@ 2013-12-23 12:42 Andrey Borzenkov
2013-12-23 13:16 ` Vladimir 'phcoder' Serbinenko
2013-12-23 14:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 2 replies; 8+ messages in thread
From: Andrey Borzenkov @ 2013-12-23 12:42 UTC (permalink / raw)
To: The development of GNU GRUB
bor@server ~/grub-2.02~beta1
$ ./grub-mkimage -d grub-core -O i386-pc -o grub.img
./grub-mkimage: error: Decompressor is too big.
bor@server ~/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
bor@server ~/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?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Decompressor is too big" building i386-pc image on Cygwin
2013-12-23 12:42 "Decompressor is too big" building i386-pc image on Cygwin Andrey Borzenkov
@ 2013-12-23 13:16 ` Vladimir 'phcoder' Serbinenko
2013-12-23 13:29 ` Andrey Borzenkov
2013-12-23 14:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
1 sibling, 1 reply; 8+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2013-12-23 13:16 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
coyld you objdunp lzma_decompressor.image ?
On Dec 23, 2013 1:43 PM, "Andrey Borzenkov" <arvidjaar@gmail.com> wrote:
> bor@server ~/grub-2.02~beta1
> $ ./grub-mkimage -d grub-core -O i386-pc -o grub.img
> ./grub-mkimage: error: Decompressor is too big.
>
> bor@server ~/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
>
> bor@server ~/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?
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: Type: text/html, Size: 1174 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Decompressor is too big" building i386-pc image on Cygwin
2013-12-23 13:16 ` Vladimir 'phcoder' Serbinenko
@ 2013-12-23 13:29 ` Andrey Borzenkov
2013-12-23 13:36 ` Vladimir 'phcoder' Serbinenko
0 siblings, 1 reply; 8+ messages in thread
From: Andrey Borzenkov @ 2013-12-23 13:29 UTC (permalink / raw)
To: The development of GNU GRUB
On Mon, Dec 23, 2013 at 5:16 PM, Vladimir 'phcoder' Serbinenko
<phcoder@gmail.com> wrote:
> coyld you objdunp lzma_decompressor.image ?
>
Any specific options? Or I can just e-mail it to you (~6K)
> On Dec 23, 2013 1:43 PM, "Andrey Borzenkov" <arvidjaar@gmail.com> wrote:
>>
>> bor@server ~/grub-2.02~beta1
>> $ ./grub-mkimage -d grub-core -O i386-pc -o grub.img
>> ./grub-mkimage: error: Decompressor is too big.
>>
>> bor@server ~/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
>>
>> bor@server ~/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?
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Decompressor is too big" building i386-pc image on Cygwin
2013-12-23 13:29 ` Andrey Borzenkov
@ 2013-12-23 13:36 ` Vladimir 'phcoder' Serbinenko
0 siblings, 0 replies; 8+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2013-12-23 13:36 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]
Just mail it to me. Of interest are extra sections other than .text
On Dec 23, 2013 2:29 PM, "Andrey Borzenkov" <arvidjaar@gmail.com> wrote:
> On Mon, Dec 23, 2013 at 5:16 PM, Vladimir 'phcoder' Serbinenko
> <phcoder@gmail.com> wrote:
> > coyld you objdunp lzma_decompressor.image ?
> >
>
> Any specific options? Or I can just e-mail it to you (~6K)
>
> > On Dec 23, 2013 1:43 PM, "Andrey Borzenkov" <arvidjaar@gmail.com> wrote:
> >>
> >> bor@server ~/grub-2.02~beta1
> >> $ ./grub-mkimage -d grub-core -O i386-pc -o grub.img
> >> ./grub-mkimage: error: Decompressor is too big.
> >>
> >> bor@server ~/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
> >>
> >> bor@server ~/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?
> >>
> >> _______________________________________________
> >> Grub-devel mailing list
> >> Grub-devel@gnu.org
> >> https://lists.gnu.org/mailman/listinfo/grub-devel
> >
> >
> > _______________________________________________
> > Grub-devel mailing list
> > Grub-devel@gnu.org
> > https://lists.gnu.org/mailman/listinfo/grub-devel
> >
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: Type: text/html, Size: 2430 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Decompressor is too big" building i386-pc image on Cygwin
2013-12-23 12:42 "Decompressor is too big" building i386-pc image on Cygwin Andrey Borzenkov
2013-12-23 13:16 ` Vladimir 'phcoder' Serbinenko
@ 2013-12-23 14:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-23 14:55 ` Andrey Borzenkov
2013-12-24 7:38 ` Andrey Borzenkov
1 sibling, 2 replies; 8+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-12-23 14:00 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 920 bytes --]
On 23.12.2013 13:42, Andrey Borzenkov wrote:
> bor@server ~/grub-2.02~beta1
> $ ./grub-mkimage -d grub-core -O i386-pc -o grub.img
> ./grub-mkimage: error: Decompressor is too big.
>
> bor@server ~/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
>
> bor@server ~/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
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Decompressor is too big" building i386-pc image on Cygwin
2013-12-23 14:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2013-12-23 14:55 ` Andrey Borzenkov
2013-12-24 7:38 ` Andrey Borzenkov
1 sibling, 0 replies; 8+ messages in thread
From: Andrey Borzenkov @ 2013-12-23 14:55 UTC (permalink / raw)
To: The development of GNU GRUB
On Mon, Dec 23, 2013 at 6:00 PM, Vladimir 'φ-coder/phcoder' Serbinenko
<phcoder@gmail.com> wrote:
> On 23.12.2013 13:42, Andrey Borzenkov wrote:
>> bor@server ~/grub-2.02~beta1
>> $ ./grub-mkimage -d grub-core -O i386-pc -o grub.img
>> ./grub-mkimage: error: Decompressor is too big.
>>
>> bor@server ~/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
>>
>> bor@server ~/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:
bor@server ~/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
bor@server ~/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 ....
bor@server ~/grub-2.02~beta1
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Decompressor is too big" building i386-pc image on Cygwin
2013-12-23 14:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-23 14:55 ` Andrey Borzenkov
@ 2013-12-24 7:38 ` Andrey Borzenkov
2013-12-24 14:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
1 sibling, 1 reply; 8+ messages in thread
From: Andrey Borzenkov @ 2013-12-24 7:38 UTC (permalink / raw)
To: The development of GNU GRUB
On Mon, Dec 23, 2013 at 6:00 PM, Vladimir 'φ-coder/phcoder' Serbinenko
<phcoder@gmail.com> wrote:
> On 23.12.2013 13:42, Andrey Borzenkov wrote:
>> bor@server ~/grub-2.02~beta1
>> $ ./grub-mkimage -d grub-core -O i386-pc -o grub.img
>> ./grub-mkimage: error: Decompressor is too big.
>>
>> bor@server ~/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
>>
>> bor@server ~/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
Adding -Qn to TARGET_CFLAGS fixes it.
Small downside is, compiler used to generate files is no more present
in *.image and *.modules. May be we could stuff it in modinfo.sh to
facilitate debugging.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Decompressor is too big" building i386-pc image on Cygwin
2013-12-24 7:38 ` Andrey Borzenkov
@ 2013-12-24 14:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 0 replies; 8+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-12-24 14:03 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]
On 24.12.2013 08:38, Andrey Borzenkov wrote:
> On Mon, Dec 23, 2013 at 6:00 PM, Vladimir 'φ-coder/phcoder' Serbinenko
> <phcoder@gmail.com> wrote:
>> On 23.12.2013 13:42, Andrey Borzenkov wrote:
>>> bor@server ~/grub-2.02~beta1
>>> $ ./grub-mkimage -d grub-core -O i386-pc -o grub.img
>>> ./grub-mkimage: error: Decompressor is too big.
>>>
>>> bor@server ~/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
>>>
>>> bor@server ~/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
>
> Adding -Qn to TARGET_CFLAGS fixes it.
>
Done
> Small downside is, compiler used to generate files is no more present
> in *.image and *.modules. May be we could stuff it in modinfo.sh to
> facilitate debugging.
>
Done
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-12-24 14:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-23 12:42 "Decompressor is too big" building i386-pc image on Cygwin Andrey Borzenkov
2013-12-23 13:16 ` Vladimir 'phcoder' Serbinenko
2013-12-23 13:29 ` Andrey Borzenkov
2013-12-23 13:36 ` Vladimir 'phcoder' Serbinenko
2013-12-23 14:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-23 14:55 ` Andrey Borzenkov
2013-12-24 7:38 ` Andrey Borzenkov
2013-12-24 14:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).