Cleanup after Thierry Fauck changes for ppc64le.

We need a "UPX standard" compiler in order to re-compile the stubs for ppc64le;
meanwhile use Thierry's "pre-compiled" stubs.
Revert powerpc stubs to those produced by UPX standard powerpc.405-linux-gcc-3.4.5.
Cleanup the workarounds that Thierry used because he lacked upx-stubtools 20130920.
ARMv8 (64-bit) compiles but is incomplete and does not run yet.

 changed src/Makefile
 changed src/linker.cpp
 changed src/stub/Makefile
 changed src/stub/amd64-linux.elf-entry.h
 changed src/stub/arm64-darwin.macho-entry.h
 changed src/stub/arm64-darwin.macho-fold.h
 changed src/stub/powerpc-darwin.dylib-entry.h
 changed src/stub/powerpc-darwin.macho-entry.h
 changed src/stub/powerpc-darwin.macho-fold.h
 changed src/stub/powerpc-linux.elf-entry.h
 changed src/stub/powerpc-linux.elf-fold.h
 changed src/stub/powerpc-linux.kernel.vmlinux.h
 changed src/stub/scripts/xstrip.py
 changed src/stub/src/arch/arm/v8a/lzma_d.S
 changed src/stub/src/arch/arm/v8a/macros.S
 changed src/stub/src/arm64-darwin.macho-entry.S
 changed src/stub/tmp/arm64-darwin.macho-entry.bin.dump
This commit is contained in:
John Reiser
2016-07-26 21:29:29 -07:00
parent 01a0c8672d
commit 5de83a606e
17 changed files with 801 additions and 758 deletions
+14 -14
View File
@@ -32,8 +32,8 @@
#define STUB_ARM64_DARWIN_MACHO_FOLD_SIZE 1904
#define STUB_ARM64_DARWIN_MACHO_FOLD_ADLER32 0xb0ecb637
#define STUB_ARM64_DARWIN_MACHO_FOLD_CRC32 0x2d74a7c6
#define STUB_ARM64_DARWIN_MACHO_FOLD_ADLER32 0xbcf9bbb7
#define STUB_ARM64_DARWIN_MACHO_FOLD_CRC32 0xff1513ae
unsigned char stub_arm64_darwin_macho_fold[1904] = {
/* 0x0000 */ 97, 1, 64,249,231, 3, 4,145, 96, 65, 33,203, 3, 24, 64,185,
@@ -47,20 +47,20 @@ unsigned char stub_arm64_darwin_macho_fold[1904] = {
/* 0x0080 */ 192, 1, 0,180,161, 1, 0, 52, 33, 4, 0, 81, 2, 88, 97,184,
/* 0x0090 */ 67,124, 26, 83,127,148, 0,113,193, 0, 0, 84, 67, 20, 6, 18,
/* 0x00a0 */ 66, 0, 1, 75, 66,100, 0, 18, 66, 0, 3, 42, 2, 88, 33,184,
/* 0x00b0 */ 63, 0, 0,113,161,254,255, 84,192, 3, 31,214,192, 3, 31,214,
/* 0x00c0 */ 40, 0,128, 82, 0, 16, 32,212,192, 3, 31,214,104, 0,128, 82,
/* 0x00d0 */ 0, 16, 32,212,192, 3, 31,214,192, 3, 31,214,136, 0,128, 82,
/* 0x00e0 */ 0, 16, 32,212,192, 3, 31,214,192, 3, 31,214,168, 0,128, 82,
/* 0x00f0 */ 0, 16, 32,212,192, 3, 31,214,192, 3, 31,214,200, 0,128, 82,
/* 0x0100 */ 0, 16, 32,212,192, 3, 31,214,192, 3, 31,214,168, 5,128, 82,
/* 0x0110 */ 0, 16, 32,212,192, 3, 31,214,192, 3, 31,214, 40, 9,128, 82,
/* 0x0120 */ 0, 16, 32,212,192, 3, 31,214,192, 3, 31,214, 72, 9,128, 82,
/* 0x0130 */ 0, 16, 32,212,192, 3, 31,214,192, 3, 31,214,168, 24,128, 82,
/* 0x0140 */ 0, 16, 32,212,192, 3, 31,214,192, 3, 31,214, 40, 19,128, 82,
/* 0x0150 */ 0, 16, 32,212,192, 3, 31,214,192, 3, 31,214,233, 31,128, 82,
/* 0x00b0 */ 63, 0, 0,113,161,254,255, 84,192, 3, 95,214,192, 3, 95,214,
/* 0x00c0 */ 40, 0,128, 82, 0, 16, 32,212,192, 3, 95,214,104, 0,128, 82,
/* 0x00d0 */ 0, 16, 32,212,192, 3, 95,214,192, 3, 95,214,136, 0,128, 82,
/* 0x00e0 */ 0, 16, 32,212,192, 3, 95,214,192, 3, 95,214,168, 0,128, 82,
/* 0x00f0 */ 0, 16, 32,212,192, 3, 95,214,192, 3, 95,214,200, 0,128, 82,
/* 0x0100 */ 0, 16, 32,212,192, 3, 95,214,192, 3, 95,214,168, 5,128, 82,
/* 0x0110 */ 0, 16, 32,212,192, 3, 95,214,192, 3, 95,214, 40, 9,128, 82,
/* 0x0120 */ 0, 16, 32,212,192, 3, 95,214,192, 3, 95,214, 72, 9,128, 82,
/* 0x0130 */ 0, 16, 32,212,192, 3, 95,214,192, 3, 95,214,168, 24,128, 82,
/* 0x0140 */ 0, 16, 32,212,192, 3, 95,214,192, 3, 95,214, 40, 19,128, 82,
/* 0x0150 */ 0, 16, 32,212,192, 3, 95,214,192, 3, 95,214,233, 31,128, 82,
/* 0x0160 */ 41, 29, 16, 50, 6, 0, 0, 20, 2, 0, 64,185, 35, 1, 2, 10,
/* 0x0170 */ 34, 97,194, 10, 66, 32,195, 42, 2, 68, 0,184, 33, 16, 0,113,
/* 0x0180 */ 74,255,255, 84,192, 3, 31,214, 3, 16, 64,169,127, 0, 2,235,
/* 0x0180 */ 74,255,255, 84,192, 3, 95,214, 3, 16, 64,169,127, 0, 2,235,
/* 0x0190 */ 99, 0, 0, 84, 3, 0,128,210, 5, 0, 0, 20,253,123,191,169,
/* 0x01a0 */ 224, 15,128, 82,253, 3, 0,145,198,255,255,151, 95, 0, 3,235,
/* 0x01b0 */ 160, 0, 0, 84,133,104, 99, 56, 37,104, 35, 56, 99, 4, 0,145,