blktrace/0002-blktrace-Makefile-add-fstack-protector-strong-flag.patch
2021-11-22 16:30:40 +08:00

27 lines
765 B
Diff

From 1e60db1dfd320d8b22dcb3e7d4636fcda12ec6dd Mon Sep 17 00:00:00 2001
From: zhanchengbin <zhanchengbin1@huawei.com>
Date: Mon, 13 Sep 2021 19:42:31 +0800
Subject: [PATCH] blktrace: Makefile add fstack-protector-strong flag
Makefile add fstack-protector-strong flag
Signed-off-by: zhanchengbin <zhanchengbin1@huawei.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index fdbded0..dbdbb37 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC = gcc
-CFLAGS = -Wall -O2 -g -W
+CFLAGS = -Wall -O2 -g -W -fstack-protector-strong
ALL_CFLAGS = $(CFLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PROGS = blkparse blktrace verify_blkparse blkrawverify blkiomon
LIBS = -lpthread
--
1.8.3.1