Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 502769d

Browse files
committed
Change HPUX loader flags to trap null pointer derefs
1 parent 9bb7096 commit 502769d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/makefiles/Makefile.hpux

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ ifeq ($(HPUX_MAJOR), 09)
2121
endif
2222

2323
# On all HPUX versions, embed LIBDIR as the shared library search path
24-
# so that the executables don't need SHLIB_PATH to be set.
25-
LDFLAGS+= -Wl,+b -Wl,$(LIBDIR)
24+
# so that the executables don't need SHLIB_PATH to be set, and enable -z
25+
# to catch null pointer dereferences.
26+
LDFLAGS+= -Wl,+b -Wl,$(LIBDIR) -Wl,-z
2627

2728
# Does anyone use this stuff?
2829
#ifdef ENFORCE_ALIGNMENT

0 commit comments

Comments
 (0)