Re: OvmfPkgX64 doesn't build with CLANG38 (clang 14.0.3) NOOPT - undefined reference to `memcpy'
On Wed, May 25, 2022 at 5:45 PM Ard Biesheuvel <ardb@...> wrote:
On Wed, 25 May 2022 at 18:44, Pedro Falcato <pedro.falcato@...> wrote:
Note: We should think about providing some basic libc functions in base EDK2 as some are required by the clang/GCC compilers (see https://gcc.gnu.org/onlinedocs/gcc/Standards.html, grep for memcpy or freestanding).
Passing -ffreestanding would also be a good idea as to let the compiler know it's dealing with a freestanding environment vs a hosted user-space one.
All the best,