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:
parent
b9ddd2812b
commit
80ff93beeb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user