Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63517 )
Change subject: libpayload: x86: Use `-mstack-alignment` for LLVM/clang ......................................................................
libpayload: x86: Use `-mstack-alignment` for LLVM/clang
Fix clang error:
TEST=Debian clang version 13.0.1-3+b2 does not show the error anymore.
Change-Id: If72d513348ff86492ef29f92b37f023cb3f1b6d0 Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- M payloads/libpayload/arch/x86/Makefile.inc 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/63517/1
diff --git a/payloads/libpayload/arch/x86/Makefile.inc b/payloads/libpayload/arch/x86/Makefile.inc index e010329..accc44a 100644 --- a/payloads/libpayload/arch/x86/Makefile.inc +++ b/payloads/libpayload/arch/x86/Makefile.inc @@ -26,7 +26,11 @@ ## SUCH DAMAGE. ##
+ifeq ($(CONFIG_LP_COMPILER_LLVM_CLANG),y) +CFLAGS += -mstack-alignment=2 +else CFLAGS += -mpreferred-stack-boundary=2 +endif
head.o-y += head.S libc-y += main.c sysinfo.c