Enable partial RELRO 46/168046/1 accepted/tizen/base/20180126.040738 submit/tizen_base/20180124.003321
authorChan Lee <chan45.lee@samsung.com>
Tue, 23 Jan 2018 07:22:32 +0000 (16:22 +0900)
committerChan Lee <chan45.lee@samsung.com>
Wed, 24 Jan 2018 00:29:13 +0000 (09:29 +0900)
Change-Id: I00dca338e368696fc0ac31e922aece974fdd936f
Signed-off-by: Chan Lee <chan45.lee@samsung.com>
lib/Makefile.in
packaging/libelf0.spec

index 92a129f..8df47b1 100644 (file)
@@ -158,7 +158,7 @@ libelf.a: $(OBJS) $(LIBOBJS)
 
 $(SHLIB): libelf.a
        @$(RM) $(SHLIB)
-       $(LINK_SHLIB) -o $(SHLIB) $(OBJS:.o=.os) $(LIBOBJS:.o=.os) $(DEPSHLIBS)
+       $(LINK_SHLIB) $(LDFLAGS) -o $(SHLIB) $(OBJS:.o=.os) $(LIBOBJS:.o=.os) $(DEPSHLIBS)
        if test "$(SONAME)" = "$(SHLIB)"; then true; else \
          $(RM) $(SONAME) && $(LN_S) $(SHLIB) $(SONAME); \
        fi
index 7d3c0b1..a878445 100644 (file)
@@ -32,6 +32,7 @@ to develop applications that require these.
 cp %{SOURCE1001} .
 
 %build
+export LDFLAGS+=" -z relro"
 %configure --disable-nls
 make %{?_smp_mflags}