coreboot-kgpe-d16/payloads/libpayload
Jordan Crouse 2c7bb9e84f libpayload: Add -Os to the CFLAGS
Adding -Os to the CFLAGS gains us about 25% smaller code (give or take).
Unfortunately, it exposes a strange issue where strcpy() suddenly goes
missing - we think that strcpy() is being provided by libgcc, and that
for some reason, -Os changes the beahavior.  Oh, well - add a quick
strcpy() function and we're good.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3175 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2008-03-20 01:13:28 +00:00
..
curses libpayload: External code 2008-03-19 23:59:13 +00:00
drivers
i386 libpayload: BSD solutions contributed by Uwe 2008-03-20 00:02:07 +00:00
include libpayload: External code 2008-03-19 23:59:13 +00:00
libc libpayload: Add -Os to the CFLAGS 2008-03-20 01:13:28 +00:00
sample
util/kconfig libpayload: External code 2008-03-19 23:59:13 +00:00
Config.in
LICENSES libpayload: BSD solutions contributed by Uwe 2008-03-20 00:02:07 +00:00
Makefile libpayload: Add -Os to the CFLAGS 2008-03-20 01:13:28 +00:00
README
libpayload.ldscript

README

This is libpayload, a minimal library to support standalone payloads
that can be booted with firmware like coreboot.  It handles the setup
code, and provides common C library symbols such as malloc() and
printf().

Please see the sample/ directory for an example of the payload in
action.