1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Explicitly strip section .note.GNU-stack from objects.

This commit is contained in:
Markus F.X.J. Oberhumer 2006-08-30 20:15:07 +02:00
parent b9ddd2812b
commit 80ff93beeb

View File

@ -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