Re: PATCH/RFC: bzImage payload as compressed ELF file.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: Jeremy Fitzhardinge <jeremy@...>, <linux-kernel@...>, Eric W. Biederman <ebiederm@...>
Date: Tuesday, January 29, 2008 - 4:38 pm

On Tue, 2008-01-29 at 10:34 -0800, H. Peter Anvin wrote:

I'm currently using "objcopy --extract-symbol -w -N \* -K input_data" to
create a .o with just the symbol I'm interested in and using -R on that.
There's also an option to add a prefix to all symbols which might be
useful.

I finessed the length issue slightly since it happens that the word
before the payload is the payload's length. I'm mulling a variety of
options:
      * declare it compression scheme dependant. At least for gzip it
        knows when it has reached the end.
      * codify the length followed by data thing we happen to have now
      * add a length field to the header, using another 4 bytes (is
        there any pressure on the size of the header?).

I'd probably go with the later unless we are pressed for space in the
header.

Ian.
-- 
Ian Campbell

Man who falls in vat of molten optical glass makes spectacle of self.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PATCH/RFC: bzImage payload as compressed ELF file., Ian Campbell, (Mon Jan 28, 6:42 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., H. Peter Anvin, (Fri Feb 1, 2:05 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., H. Peter Anvin, (Fri Feb 1, 2:15 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., H. Peter Anvin, (Mon Jan 28, 7:20 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., Ian Campbell, (Tue Jan 29, 5:31 am)
Re: PATCH/RFC: bzImage payload as compressed ELF file., Jeremy Fitzhardinge, (Mon Jan 28, 6:54 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., Ian Campbell, (Tue Jan 29, 5:34 am)
Re: PATCH/RFC: bzImage payload as compressed ELF file., Jeremy Fitzhardinge, (Tue Jan 29, 1:54 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., H. Peter Anvin, (Tue Jan 29, 2:05 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., Jeremy Fitzhardinge, (Tue Jan 29, 2:31 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., H. Peter Anvin, (Tue Jan 29, 2:34 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., Ian Campbell, (Tue Jan 29, 4:38 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., H. Peter Anvin, (Tue Jan 29, 5:50 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., Ian Campbell, (Tue Jan 29, 5:55 pm)
Re: PATCH/RFC: bzImage payload as compressed ELF file., H. Peter Anvin, (Tue Jan 29, 6:09 pm)