Re: [PATCH 10/33] i386: Relocatable kernel support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 01, 2006 at 12:07:02PM -0600, Eric W. Biederman wrote:
> Mika Penttil? <[email protected]> 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 :)
A comment would be appreciated.

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux