From d8a17cdc7a9dea1c3e685192d0911fdffe1b2a14 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 25 Mar 2017 17:25:55 +0100 Subject: [PATCH] Enhance debugging compiler flag to -g3 (maximum debug information), includes extra information such as macro definitions --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9563e66..586711d4 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,10 @@ GIT_TAG := $(shell git describe --tags --abbrev=0) # -Wl,-z,relro: reduces the possible areas of memory in a program that can be used by an attacker that performs a successful memory corruption exploit # -Wl,-z,now: When combined with RELRO above, this further reduces the regions of memory available to memory corruption attacks # -pie -fPIE: For ASLR +# -g3: More debugging information CC=gcc HARDENING_FLAGS=-fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -CCFLAGS=-I$(IDIR) -Wall -g2 $(HARDENING_FLAGS) $(CFLAGS) +CCFLAGS=-I$(IDIR) -Wall -g3 $(HARDENING_FLAGS) $(CFLAGS) LIBS=-rdynamic -pthread -lm ODIR =obj