2010-08-24 16:25:50 +00:00
|
|
|
Build slapd as position-independent executable (PIE) to take an advantage of
|
|
|
|
address space layout randomization (ASLD).
|
|
|
|
|
|
|
|
Author: Thomas Woerner <twoerner@redhat.com>
|
|
|
|
|
2011-11-25 22:12:51 +00:00
|
|
|
--- a/servers/slapd/Makefile.in
|
|
|
|
+++ b/servers/slapd/Makefile.in
|
|
|
|
@@ -263,7 +263,7 @@ slapi/libslapi.la: FORCE
|
|
|
|
(cd slapi; $(MAKE) $(MFLAGS) all)
|
2010-08-24 16:25:50 +00:00
|
|
|
|
|
|
|
slapd: $(SLAPD_DEPENDS) @LIBSLAPI@
|
|
|
|
- $(LTLINK) -o $@ $(SLAPD_OBJECTS) $(LIBS) \
|
|
|
|
+ $(LTLINK) -pie -Wl,-z,defs -o $@ $(SLAPD_OBJECTS) $(LIBS) \
|
|
|
|
$(WRAP_LIBS)
|
|
|
|
$(RM) $(SLAPTOOLS)
|
|
|
|
for i in $(SLAPTOOLS); do \
|