From 4a1100b6a48233099ee89949ee88944e407c1ad9 Mon Sep 17 00:00:00 2001 From: "jreiser@BitWagon.com" Date: Sun, 11 Sep 2016 15:28:42 -0700 Subject: [PATCH] Unexport all symbols in compressed output. added src/stub/src/amd64-darwin.macho-upxhide.txt changed src/stub/src/amd64-darwin.macho-upxmain.c --- src/stub/src/amd64-darwin.macho-upxhide.txt | 1 + src/stub/src/amd64-darwin.macho-upxmain.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 src/stub/src/amd64-darwin.macho-upxhide.txt diff --git a/src/stub/src/amd64-darwin.macho-upxhide.txt b/src/stub/src/amd64-darwin.macho-upxhide.txt new file mode 100644 index 00000000..72e8ffc0 --- /dev/null +++ b/src/stub/src/amd64-darwin.macho-upxhide.txt @@ -0,0 +1 @@ +* diff --git a/src/stub/src/amd64-darwin.macho-upxmain.c b/src/stub/src/amd64-darwin.macho-upxmain.c index be538401..3b5ae8ec 100644 --- a/src/stub/src/amd64-darwin.macho-upxmain.c +++ b/src/stub/src/amd64-darwin.macho-upxmain.c @@ -698,7 +698,8 @@ typedef struct { // Build on Mac OS X: (where gcc is really clang) // gcc -o amd64-darwin.macho-upxmain.exe -fno-stack-protector \ // -Os -fPIC amd64-darwin.macho-upxmain.c -Wl,-pagezero_size,0xffff0000 \ -// -Wl,-no_pie -Wl,-no_uuid -Wl,-no_function_starts -Wl,-headerpad,0x400 +// -Wl,-no_pie -Wl,-no_uuid -Wl,-no_function_starts -Wl,-headerpad,0x400 \ +// -Wl,-unexported_symbols_list amd64-darwin.macho-upxhide.txt int main(int argc, char *argv[]) {