Skip to content

Commit 29d557e

Browse files
committed
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 <[email protected]>
1 parent fce9915 commit 29d557e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ GIT-VERSION-FILE: FORCE
377377

378378
# CFLAGS and LDFLAGS are for the users to override from the command line.
379379

380-
CFLAGS = -g -O2 -Wall
380+
CFLAGS = -g -Wall
381381
LDFLAGS =
382382
ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
383383
ALL_LDFLAGS = $(LDFLAGS)

config.mak.uname

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,6 @@ else
545545
prefix = /usr/
546546
# Enable DEP
547547
BASIC_LDFLAGS += -Wl,--nxcompat
548-
# Enable ASLR
549-
BASIC_LDFLAGS += -Wl,--dynamicbase
550548
ifeq (MINGW32,$(MSYSTEM))
551549
prefix = /mingw32
552550
BASIC_LDFLAGS += -Wl,--pic-executable,-e,_mainCRTStartup

0 commit comments

Comments
 (0)