From 29d557eaa5bc7c342835f5bdae02ba980b42a940 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 21 Mar 2016 14:30:37 +0100 Subject: [PATCH] DEBUG GDB cannot handle executables compiled with ASLR support, and it has serious problems figuring out source code locations corresponding to the current instruction pointer when compiled with -O2. Signed-off-by: Johannes Schindelin --- Makefile | 2 +- config.mak.uname | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 33b0f76fd6..77f0b900a4 100644 --- a/Makefile +++ b/Makefile @@ -377,7 +377,7 @@ GIT-VERSION-FILE: FORCE # CFLAGS and LDFLAGS are for the users to override from the command line. -CFLAGS = -g -O2 -Wall +CFLAGS = -g -Wall LDFLAGS = ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS) diff --git a/config.mak.uname b/config.mak.uname index ac81fddf6f..61006490c4 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -545,8 +545,6 @@ else prefix = /usr/ # Enable DEP BASIC_LDFLAGS += -Wl,--nxcompat - # Enable ASLR - BASIC_LDFLAGS += -Wl,--dynamicbase ifeq (MINGW32,$(MSYSTEM)) prefix = /mingw32 BASIC_LDFLAGS += -Wl,--pic-executable,-e,_mainCRTStartup