Mika Penttilä <mika.penttila@xxxxxxxxxxx> writes:Huh, quite a nice trick indeed!
@@ -1,9 +1,10 @@I don't see how you are getting the uncompressed length from output_len...
SECTIONS
{
- .data : { + .data.compressed : {
input_len = .;
LONG(input_data_end - input_data) input_data = .; *(.data)
+ output_len = . - 4;
input_data_end = .; }
}
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
-