Disable stack protector in test suite
PATCH 1/1 Disable stack protector in test suite
The cc-option is originally from Linux.
Regards,
Anthony Liguori
Subject: [PATCH] Disable stack protector in test suite
Some distros (like Ubuntu) enable GCC's stack protector by default. The stack protector requires symbols in libgcc so since we're not linking against libgcc, we need to disable the stack protector.
user/Makefile +9 -0
@@ -1,8 +1,17 @@ include config.mak +# cc-option +# Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0) + +cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) + CFLAGS = -I $(KERNELDIR)/include $(autodepend-flags) -g -fomit-frame-pointer \ -Wall -m$(bits) +CFLAGS += $(call cc-option, -fno-stack-protector, "") +CFLAGS += $(call cc-option, -fno-stack-protector-all, "") + CXXFLAGS = $(autodepend-flags) autodepend-flags = -MMD -MF $(dir $*).$(notdir $*).d
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
A message that is not in the archive (sent off-list or not yet received): 464C8219.80100-r/[email protected]
Avi Kivity
AppliedQuoted 1 line · Anthony Liguori
The cc-option is originally from Linux.
Applied, thanks.
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/