Re: WITH_BEARSSL: -8112 bytes available

From: Gordon Bergling <gbe_at_freebsd.org>
Date: Mon, 29 May 2023 13:55:11 UTC
Hi,

On Mon, May 29, 2023 at 10:58:27AM +0200, FreeBSD User wrote:
> on CURRENT, enabling in /etc/src.conf
> 
> WITH_BEARSSL=
> 
> seems to result in a slightly enlarged loader binary, which seems to have a fixed size
> supposed on the error I get. See below.
> 
> The system is amd64 (64 bit), for the record.
> 
> Somewhere in the past developers mentioned this upcoming problem and provided a knob to adjust
> the used size - I forgot about that knob and I couldn't find it even in the loader docs - or
> looked at the wrong places.
> 
> Can someone help me out here?
> 
> The first error stops compileing world/kernel, but taking a second run, the error goes away.
> 
> Kind regards and thanks in advance,
> 
> oh
> 
> 
> 
> [...]
> --- all_subdir_stand/efi ---
> SOURCE_DATE_EPOCH=1451606400  objcopy -j .peheader -j .text -j .sdata -j .data  -j .dynamic -j
> .dynsym -j .rel.dyn  -j .rela.dyn -j .reloc -j .eh_frame -j set_Xcommand_set  -j
> set_Xficl_compile_set  --output-target=efi-app-x86_64 loader_4th.sym loader_4th.efi ---
> all_subdir_stand/i386 --- 
> 
> -8112 bytes available 7.71 real        12.86 user         3.08 sys
> 
> make[1]: stopped in /usr/src
> [...]

I often face a similiar error, not sure if it is BEARSSL related since I build
it since a few month per default, but it often helps just to restart the build.

--Gordon