Hi,<br><br>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.<br>
<br>Here is my actual gcc call: <br><br> $(CC) $(DISTRO_LFLAGS) -nostdlib -nostartfiles -I /usr/include -L/usr/lib/ -lcrypto -lssl -static -o $@ -T $(TOP)/src/config/coreboot_ram.ld coreboot_ram.o<br><br>Here is the output:<br>
<br>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<br>coreboot_ram.o: In function `measure_elf':<br>
/home/sphinx/coreboot/coreboot_o/coreboot-v2//src/boot/elfboot.c:75: undefined reference to `EVP_sha256'<br>/home/sphinx/coreboot/coreboot_o/coreboot-v2//src/boot/elfboot.c:75: undefined reference to `EVP_Digest'<br>
collect2: ld returned 1 exit status<br><br>I need that stdlibs, without it can't find my library.<br><br><br>Any chance how i could get this running?<br><br>Regards,<br><br>René<br>