From 8713a3d6ac4f92ec4c23223e0bd536a0df6e212c Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Thu, 8 Dec 2022 17:47:12 +0100 Subject: [PATCH] strip: fix UPX CantPackException. Fix #9 Signed-off-by: Luca Di Maio --- Makefile | 4 +--- internal/pakkero/obfuscation.go | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 55c38db..4815b6a 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,6 @@ all: --remove-section=.got \ --remove-section=.note.ABI-tag \ --remove-section=.note.gnu.build-id \ - --remove-section=.note.go.buildid \ --remove-section=.shstrtab \ --remove-section=.typelink \ dist/pakkero; @@ -53,14 +52,13 @@ clean: --remove-section=.got \ --remove-section=.note.ABI-tag \ --remove-section=.note.gnu.build-id \ - --remove-section=.note.go.buildid \ --remove-section=.shstrtab \ --remove-section=.typelink \ dist/pakkero test: clean dist/pakkero \ - -file /usr/bin/echo \ + -file /usr/bin/echo -c \ -o /tmp/test.enc \ -offset 2850000 \ -enable-stdout \ diff --git a/internal/pakkero/obfuscation.go b/internal/pakkero/obfuscation.go index ed10a07..90aed1e 100644 --- a/internal/pakkero/obfuscation.go +++ b/internal/pakkero/obfuscation.go @@ -131,7 +131,6 @@ func StripFile(infile string, launcherFile string) bool { "--remove-section=.got", "--remove-section=.note.ABI-tag", "--remove-section=.note.gnu.build-id", - "--remove-section=.note.go.buildid", "--remove-section=.shstrtab", "--remove-section=.typelink", infile,