lkml.org 
[lkml]   [2006]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 10/33] i386: Relocatable kernel support.
Eric W. Biederman wrote:
> Mika Penttilä <mika.penttila@kolumbus.fi> writes:
>
>
>>> @@ -1,9 +1,10 @@
>>> SECTIONS
>>> {
>>> - .data : { + .data.compressed : {
>>> input_len = .;
>>> LONG(input_data_end - input_data) input_data = .; *(.data)
>>> + output_len = . - 4;
>>> input_data_end = .; }
>>> }
>>>
>>>
>> I don't see how you are getting the uncompressed length from output_len...
>>
>
> It's part of the gzip format. It places the length at the end of
> the compressed data. I am just computing the address of where gzip
> put the length and putting a variable there called output_len.
>
> Isn't linker script magic wonderful :)
>
> Eric
> -
>
Huh, quite a nice trick indeed!

Thanks,
Mika

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-08-01 20:17    [W:0.131 / U:0.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site