Re: [PATCH 5/5] selftests/sgx: Enclave freestanding compilation + separate linker options.

From: Jarkko Sakkinen
Date: Fri Jul 28 2023 - 15:22:14 EST


On Mon Jul 24, 2023 at 4:58 PM UTC, Jo Van Bulck wrote:
> Fixes "'linker' input unused [-Wunused-command-line-argument]" errors when
> compiling with clang.
>
> Additionally pass -ffreestanding to prohibit memset/memcpy stdlib calls for
> optimized enclave code.

Should be split into two patches. Please describe the motivation for the
second paragraph in the patch, which adds '-ffreestanding'.


BR, Jarkko