[coreboot] coreboot V2 with crypto library

René Reuter reuter.rene at googlemail.com
Mon Jul 27 13:01:35 CEST 2009


for my Trusted Boot project with coreboot, I need to get the OpenSSL crypto
library running with coreboot. I could get the modified elfboot.c compiled
with the OpenSSL calls, but at the linking point with coreboot_ram.o it
crashes because that has the option -nostdlibs. The library needs that
standardlibs and without that option coreboot build will fail.

Here is my actual gcc call:

 $(CC) $(DISTRO_LFLAGS) -nostdlib -nostartfiles -I /usr/include -L/usr/lib/
-lcrypto -lssl -static -o $@ -T $(TOP)/src/config/coreboot_ram.ld

Here is the output:

gcc -m32 -Wl,--build-id=none -nostdlib -nostartfiles -I /usr/include
-L/usr/lib/ -lcrypto -lssl -static -o coreboot_ram -T
coreboot_ram.o: In function `measure_elf':
undefined reference to `EVP_sha256'
undefined reference to `EVP_Digest'
collect2: ld returned 1 exit status

I need that stdlibs, without it can't find my library.

Any chance how i could get this running?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090727/23d2ca6e/attachment.html>

More information about the coreboot mailing list