From 80ff93beeb97f1bd1738af928181d458e581d998 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Wed, 30 Aug 2006 20:15:07 +0200 Subject: [PATCH] Explicitly strip section .note.GNU-stack from objects. --- src/stub/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stub/Makefile b/src/stub/Makefile index 3605a473..d1b66fa3 100644 --- a/src/stub/Makefile +++ b/src/stub/Makefile @@ -178,14 +178,14 @@ define tc.default.f-embed_objinfo chmod a-x $1 $(call tc,objcopy) --strip-unneeded $1 $(call tc,objcopy) -R .text -R .data -R .bss $1 - $(call tc,objcopy) -R .comment -R .note -R .reginfo $1 + $(call tc,objcopy) -R .comment -R .note -R .note.GNU-stack -R .reginfo $1 $(call tc,objdump) -Dr $1 | $(RTRIM) > $1.disasm $(call tc,objdump) -htr -w $1 | $(RTRIM) > $1.dump cat $1.dump >> $1 endef define tc.default.f-objstrip chmod a-x $1 - $(call tc,objcopy) -R .comment -R .note -R .reginfo $1 + $(call tc,objcopy) -R .comment -R .note -R .note.GNU-stack -R .reginfo $1 endef # some common arch settings