[coreboot] [PATCH]another attempt at minimizing bootblock size

Patrick Georgi patrick at georgi-clan.de
Tue Feb 23 14:11:50 CET 2010


attached patch is another attempt at minimizing bootblock size.
It also removes the obsolete ldscript_cbfs.lb, and removes any mention
of _lrom and _elrom, which were set but never used (and broke the
minimization approach used)

With the patch, the bootblock for kontron/986lcd-m is just 978 bytes,
the bootblock for amd/serengeti_cheetah_fam10 is 2390 bytes (more
complex setup), and asus/m2v-mx_se features a bootblock of 674 bytes.

I only did that for the tinybootblock variant of building images, as
it's much easier and thus safer to handle.

I also added a memory region constraint, so ld fails once the bootblock
is more than 64k, which will be most effective to guards against the
close-to-4GB images we've seen every once in a while.
However, this might require some tweaking of the list of discarded
sections, as ld complains about the various "default" sections, even if
those are empty and would be discarded in any case.

Those files should also be renamed at some point (no need to mention
that the file is for "CBFS", and .lb should be called .cb), but I'd
prefer to do that after I moved away the ldscripts variable in the build
system, so there are fewer files to touch for that.

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20100223-1-various-ldscript
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100223/5515870e/attachment.ksh>

More information about the coreboot mailing list