From 8027eeaf95f0d7d271f81f390f6bb01b92d9f86d Mon Sep 17 00:00:00 2001 From: Su Weifeng Date: Mon, 13 Sep 2021 21:35:27 +0800 Subject: [PATCH] Change compile option from stack-protector to stack-protector-strong Signed-off-by: Su Weifeng --- ...ption-from-stack-protector-to-stack-.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 0029--Change-compile-option-from-stack-protector-to-stack-.patch diff --git a/0029--Change-compile-option-from-stack-protector-to-stack-.patch b/0029--Change-compile-option-from-stack-protector-to-stack-.patch new file mode 100644 index 0000000..cf30a59 --- /dev/null +++ b/0029--Change-compile-option-from-stack-protector-to-stack-.patch @@ -0,0 +1,27 @@ +From 1cf0d702c619010d246f772413acaa1002516de1 Mon Sep 17 00:00:00 2001 +From: Su Weifeng +Date: Mon, 13 Sep 2021 21:27:35 +0800 +Subject: [PATCH] Change compile option from stack-protector to + stack-protector-strong. + +Signed-off-by: Su Weifeng +--- + mk/spdk.common.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk +index f3fe5c2..dc8ed69 100644 +--- a/mk/spdk.common.mk ++++ b/mk/spdk.common.mk +@@ -120,7 +120,7 @@ COMMON_CFLAGS += -D_GNU_SOURCE + COMMON_CFLAGS += -fPIC + + # Enable stack buffer overflow checking +-COMMON_CFLAGS += -fstack-protector ++COMMON_CFLAGS += -fstack-protector-strong + + # Prevent accidental multiple definitions of global variables + COMMON_CFLAGS += -fno-common +-- +1.8.3.1 + -- Gitee