mirror of
https://github.com/git/git.git
synced 2026-02-02 05:52:45 +00:00
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 <johannes.schindelin@gmx.de>
This commit is contained in:
2
Makefile
2
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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user