about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-09 23:36:38 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-09 23:36:38 +0000
commit9ff37ba4090736527fdde51840ffa45ee3958815 (patch)
tree85a56172507520af90019c9cb9dee8f4a79eb827
parentd299cb7cb9dda831adc4bec06fbaedffd4971b92 (diff)
downloadmdevd-9ff37ba4090736527fdde51840ffa45ee3958815.tar.gz
mdevd-9ff37ba4090736527fdde51840ffa45ee3958815.tar.xz
mdevd-9ff37ba4090736527fdde51840ffa45ee3958815.zip
Real noexecstack fix: make strip less greedy
-rw-r--r--Makefile4
-rwxr-xr-xconfigure1
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 94a820f..cd6c7f0 100644
--- a/Makefile
+++ b/Makefile
@@ -75,10 +75,10 @@ tgz: distclean
 
 strip: $(ALL_LIBS) $(ALL_BINS)
 ifneq ($(strip $(STATIC_LIBS)),)
-	exec $(STRIP) -x -R .note -R .comment -R .note.GNU-stack $(STATIC_LIBS)
+	exec $(STRIP) -x -R .note -R .comment $(STATIC_LIBS)
 endif
 ifneq ($(strip $(ALL_BINS)$(SHARED_LIBS)),)
-	exec $(STRIP) -R .note -R .comment -R .note.GNU-stack $(ALL_BINS) $(SHARED_LIBS)
+	exec $(STRIP) -R .note -R .comment $(ALL_BINS) $(SHARED_LIBS)
 endif
 
 install: install-dynlib install-libexec install-bin install-lib install-include
diff --git a/configure b/configure
index 3fb5aa5..9cb852d 100755
--- a/configure
+++ b/configure
@@ -346,7 +346,6 @@ tryflag CFLAGS_AUTO -fdata-sections
 
 tryldflag LDFLAGS_AUTO -Wl,--sort-section=alignment
 tryldflag LDFLAGS_AUTO -Wl,--sort-common
-tryldflag LDFLAGS_AUTO -Wl,-z,noexecstack
 
 CPPFLAGS_AUTO="${CPPFLAGS_AUTO}${addincpath}"