[coreboot] coreboot V2 with crypto library

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Mon Jul 27 17:41:20 CEST 2009

On 27.07.2009 13:01, René Reuter wrote:
> 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 the output:
> gcc -m32 -Wl,--build-id=none -nostdlib -nostartfiles -I /usr/include
> -L/usr/lib/ -lcrypto -lssl -static -o coreboot_ram -T
> /home/sphinx/coreboot/coreboot_o/coreboot-v2/src/config/coreboot_ram.ld
> coreboot_ram.o
> coreboot_ram.o: In function `measure_elf':
> /home/sphinx/coreboot/coreboot_o/coreboot-v2//src/boot/elfboot.c:75:
> undefined reference to `EVP_sha256'
> /home/sphinx/coreboot/coreboot_o/coreboot-v2//src/boot/elfboot.c:75:
> undefined reference to `EVP_Digest'
> collect2: ld returned 1 exit status
> I need that stdlibs, without it can't find my library.

No, stdlibs will not help. Your problem is that libcrypto is not linked in.

> Any chance how i could get this running?

Make sure libcrypto gets linked in. Hint: with the paths you provided,
it is very unlikely you get the right libcrypto.



More information about the coreboot mailing list