[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 :
>> 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,
> _ "jmp_buf definition violates C standard", from hpa,
> (and one additional item that _maybe_ has some kind of influence?...)
> _ "Add -ffreestanding to compiler flags", from David Woodhouse
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.
More information about the Syslinux