This patch adds zero compression for bss segments. One of the reasons
for this is that currently, if you select no compression, the bss segment of filo takes up 153K with just zeroes. With this patch, it always takes up a lar header + 1 byte. I left the one byte so that the checksum wouldn't be broken. This patch could have taken out the calloc in the compression area, but since it only uses compile-time memory, I decided to keep this simple. Myles Signed-off-by: Myles Watson <myles@pel.cs.byu.edu> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@601 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
31b60b34ec
commit
2f5c48d0b2
5 changed files with 33 additions and 2 deletions
|
|
@ -67,6 +67,7 @@ struct lar_header {
|
|||
* 0 = no compression
|
||||
* 1 = lzma
|
||||
* 2 = nrv2b
|
||||
* 3 = zeroes
|
||||
*/
|
||||
u32 compression;
|
||||
u64 entry;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue