[syslinux] gnu-efi memset/memcpy

H. Peter Anvin hpa at zytor.com
Mon Feb 11 12:10:23 PST 2019


On 2/8/19 4:46 PM, Ady Ady via Syslinux wrote:
>> But not this library surely ? Looking at gnu-efi one can see that is is a workaround for gcc/MSVC
>> and only for memcpy/memset :
>>   https://sourceforge.net/p/gnu-efi/code/ci/b1d426ce67cbeaa1a8ec7d9b8d0d8071ae4563b4/
>> I have suggested that gnu-efi should use weak syms for these.
>  
> Just an attempt to "keep it all together" (Nigel Croxon doesn't seem to 
> be "connecting" the following first 2 items):
> 
> _ "syslinux fails to build: multiple definition of `memset'", from 
> Joakim Tjernlund,
>  https://sf.net/p/gnu-efi/bugs/16/ 
> 
> _ "jmp_buf definition violates C standard", from hpa,
>  https://sf.net/p/gnu-efi/bugs/17/ 
> 
> 
> (and one additional item that _maybe_ has some kind of influence?...)
> _ "Add -ffreestanding to compiler flags", from David Woodhouse 
>  https://www.syslinux.org/archives/2018-August/026159.html 
> 

This would probably help with gcc version compatibility, although at the
cost of larger size.

Syslinux is *not* a freestanding implementation; it has a full libc, so
-ffreestanding *shouldn't* be necessary, except for floating point; I
should see if we can build libpng floating point with -ffreestanding.

	-hpa



More information about the Syslinux mailing list