Blame SOURCES/openldap-security-pie.patch

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