summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-09 23:37:18 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-09 23:37:18 +0000
commit98d7928be3a453331daf5d58bc9e46c382d32e5d (patch)
tree67b84d4d919d4edf61fe108bc25e2efa3b0bb98b
parentf9b49ae290243ffced6970c322366a73aa15af73 (diff)
downloads6-frontend-98d7928be3a453331daf5d58bc9e46c382d32e5d.tar.xz
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 c514a49..e0e1989 100644
--- a/Makefile
+++ b/Makefile
@@ -76,10 +76,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 3183239..2587fef 100755
--- a/configure
+++ b/configure
@@ -358,7 +358,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}"