1 |
vip-ire |
1.1 |
Build slapd as position-independent executable (PIE) to take an advantage of |
2 |
|
|
address space layout randomization (ASLD). |
3 |
|
|
|
4 |
|
|
Author: Thomas Woerner <twoerner@redhat.com> |
5 |
|
|
|
6 |
|
|
--- a/servers/slapd/Makefile.in |
7 |
|
|
+++ b/servers/slapd/Makefile.in |
8 |
|
|
@@ -263,7 +263,7 @@ slapi/libslapi.la: FORCE |
9 |
|
|
(cd slapi; $(MAKE) $(MFLAGS) all) |
10 |
|
|
|
11 |
|
|
slapd: $(SLAPD_DEPENDS) @LIBSLAPI@ |
12 |
|
|
- $(LTLINK) -o $@ $(SLAPD_OBJECTS) $(LIBS) \ |
13 |
|
|
+ $(LTLINK) -pie -Wl,-z,defs -o $@ $(SLAPD_OBJECTS) $(LIBS) \ |
14 |
|
|
$(WRAP_LIBS) |
15 |
|
|
$(RM) $(SLAPTOOLS) |
16 |
|
|
for i in $(SLAPTOOLS); do \ |