Enhance debugging compiler flag to -g3 (maximum debug information), includes extra information such as macro definitions

This commit is contained in:
DL6ER
2017-03-25 17:25:55 +01:00
parent f3bcf9f0a5
commit d8a17cdc7a
+2 -1
View File
@@ -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