lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m1y7u8xrcp.fsf@ebiederm.dsl.xmission.com>
Date:	Tue, 01 Aug 2006 12:07:02 -0600
From:	ebiederm@...ssion.com (Eric W. Biederman)
To:	Mika Penttilä <mika.penttila@...umbus.fi>
Cc:	fastboot@...l.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 10/33] i386: Relocatable kernel support.

Mika Penttilä <mika.penttila@...umbus.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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ