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
+41 -41
View File
@@ -32,80 +32,80 @@
#define STUB_POWERPC_LINUX_KERNEL_VMLINUX_SIZE 9082
#define STUB_POWERPC_LINUX_KERNEL_VMLINUX_ADLER32 0xaf282773
#define STUB_POWERPC_LINUX_KERNEL_VMLINUX_CRC32 0x612d79a8
#define STUB_POWERPC_LINUX_KERNEL_VMLINUX_ADLER32 0x1b691f11
#define STUB_POWERPC_LINUX_KERNEL_VMLINUX_CRC32 0x99104672
unsigned char stub_powerpc_linux_kernel_vmlinux[9082] = {
/* 0x0000 */ 127, 69, 76, 70, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0010 */ 0, 1, 0, 20, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0020 */ 0, 0, 26,168, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 40,
/* 0x0020 */ 0, 0, 25, 12, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 40,
/* 0x0030 */ 0, 25, 0, 22, 72, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0,
/* 0x0040 */ 0, 0, 0, 0, 40, 6, 0,208, 76,194, 0, 32, 84,132,240,191,
/* 0x0050 */ 77,194, 0, 32, 60, 0, 0, 16,124, 4, 0, 64, 65,128, 0, 8,
/* 0x0040 */ 0, 0, 0, 0, 40, 6, 0,208, 76,130, 0, 32, 84,132,240,191,
/* 0x0050 */ 77,130, 0, 32, 60, 0, 0, 16,124, 4, 0, 64, 65,128, 0, 8,
/* 0x0060 */ 124, 4, 3,120, 56,165, 1, 32,124,103, 27,120, 56, 99,255,252,
/* 0x0070 */ 124,137, 3,166, 72, 0, 0, 28, 84, 75, 2,186,125, 99, 88, 80,
/* 0x0080 */ 125,107, 58, 20, 81, 98, 1,186,144, 67, 0, 0, 79, 64, 0, 32,
/* 0x0090 */ 132, 67, 0, 4, 84, 75, 85,190,124, 11, 40, 64, 65,194,255,220,
/* 0x00a0 */ 67, 32,255,240, 78,128, 0, 32,124, 0, 41,236,125,168, 2,166,
/* 0x0080 */ 125,107, 58, 20, 81, 98, 1,186,144, 67, 0, 0, 78, 64, 0, 32,
/* 0x0090 */ 132, 67, 0, 4, 84, 75, 85,190,124, 11, 40, 64, 65,162,255,220,
/* 0x00a0 */ 66, 0,255,240, 78,128, 0, 32,124, 0, 41,236,125,168, 2,166,
/* 0x00b0 */ 40, 7, 0, 2, 64,130, 0,228,144,166, 0, 0,124,132, 26, 20,
/* 0x00c0 */ 60, 0,128, 0, 61, 32,128, 0, 56, 99,255,255, 56,165,255,255,
/* 0x00d0 */ 57, 64,255,255, 72, 0, 0,180,124, 9, 0, 64,125, 41, 72, 20,
/* 0x00e0 */ 76,226, 0, 32, 57, 32, 0, 1,125, 41, 28, 44, 56, 99, 0, 4,
/* 0x00e0 */ 76,162, 0, 32, 57, 32, 0, 1,125, 41, 28, 44, 56, 99, 0, 4,
/* 0x00f0 */ 124, 9, 0, 64,125, 41, 73, 20, 78,128, 0, 32,141, 3, 0, 1,
/* 0x0100 */ 157, 5, 0, 1, 75,255,255,213, 65,225,255,244, 56,224, 0, 1,
/* 0x0110 */ 75,255,255,201,124,231, 57, 21, 75,255,255,193, 65,192,255,244,
/* 0x0120 */ 52,231,255,253, 57, 0, 0, 0, 65,192, 0, 20,140, 67, 0, 1,
/* 0x0130 */ 84,231, 64, 46,124,234, 16,249, 65,194, 0, 0, 75,255,255,157,
/* 0x0100 */ 157, 5, 0, 1, 75,255,255,213, 65,129,255,244, 56,224, 0, 1,
/* 0x0110 */ 75,255,255,201,124,231, 57, 21, 75,255,255,193, 65,160,255,244,
/* 0x0120 */ 52,231,255,253, 57, 0, 0, 0, 65,128, 0, 20,140, 67, 0, 1,
/* 0x0130 */ 84,231, 64, 46,124,234, 16,249, 65,130, 0, 0, 75,255,255,157,
/* 0x0140 */ 125, 8, 65, 21, 75,255,255,149,125, 8, 65, 21, 56,224, 0, 1,
/* 0x0150 */ 64,194, 0, 28, 56,224, 0, 3, 57, 0, 0, 1, 75,255,255,125,
/* 0x0160 */ 125, 8, 65, 21, 75,255,255,117, 65,192,255,244, 32, 74,242,255,
/* 0x0150 */ 64,130, 0, 28, 56,224, 0, 3, 57, 0, 0, 1, 75,255,255,125,
/* 0x0160 */ 125, 8, 65, 21, 75,255,255,117, 65,160,255,244, 32, 74,242,255,
/* 0x0170 */ 125, 8, 57, 20,124,234, 42, 20,125, 9, 3,166,141, 7, 0, 1,
/* 0x0180 */ 157, 5, 0, 1, 67, 32,255,248, 56,224, 1, 0,124, 7, 41,236,
/* 0x0180 */ 157, 5, 0, 1, 66, 0,255,248, 56,224, 1, 0,124, 7, 41,236,
/* 0x0190 */ 124, 7, 26, 44, 75,255,255,112,124, 0, 41,236,125,168, 2,166,
/* 0x01a0 */ 40, 7, 0, 5, 64,130, 1, 32,144,166, 0, 0,124,132, 26, 20,
/* 0x01b0 */ 60, 0,128, 0, 61, 32,128, 0, 56, 99,255,255, 56,165,255,255,
/* 0x01c0 */ 57, 64,255,255, 72, 0, 0,240, 57, 32, 0, 1,125, 41, 28, 44,
/* 0x01d0 */ 56, 99, 0, 4,124, 9, 0, 64,125, 41, 72, 20, 97, 41, 0, 1,
/* 0x01e0 */ 78,128, 0, 32,141, 3, 0, 1,157, 5, 0, 1,124, 9, 0, 64,
/* 0x01f0 */ 125, 41, 74, 20, 65,194,255,213, 65,225,255,236, 56,224, 0, 1,
/* 0x0200 */ 72, 0, 0, 20, 56,231,255,255,125, 41, 72, 21, 65,194,255,189,
/* 0x0210 */ 124,231, 57, 21,125, 41, 72, 21, 65,194,255,177,124,231, 57, 21,
/* 0x0220 */ 124, 9, 0, 64,125, 41, 74, 20, 65,194,255,161, 65,192,255,216,
/* 0x0230 */ 57, 0, 0, 0, 52,231,255,253, 84,231, 64, 46, 65,192, 0, 24,
/* 0x0240 */ 140, 67, 0, 1,124,234, 16,249,125, 74, 14,112, 65,194, 0, 0,
/* 0x0250 */ 72, 0, 0, 12,125, 41, 72, 21, 65,194,255,113,125, 8, 65, 21,
/* 0x0260 */ 125, 41, 72, 21, 65,194,255,101,125, 8, 65, 21, 64,130, 0, 40,
/* 0x0270 */ 57, 0, 0, 1,125, 41, 72, 21, 65,194,255, 81,125, 8, 65, 21,
/* 0x0280 */ 124, 9, 0, 64,125, 41, 74, 20, 65,194,255, 65, 65,192,255,232,
/* 0x01f0 */ 125, 41, 74, 20, 65,162,255,213, 65,129,255,236, 56,224, 0, 1,
/* 0x0200 */ 72, 0, 0, 20, 56,231,255,255,125, 41, 72, 21, 65,162,255,189,
/* 0x0210 */ 124,231, 57, 21,125, 41, 72, 21, 65,162,255,177,124,231, 57, 21,
/* 0x0220 */ 124, 9, 0, 64,125, 41, 74, 20, 65,162,255,161, 65,160,255,216,
/* 0x0230 */ 57, 0, 0, 0, 52,231,255,253, 84,231, 64, 46, 65,128, 0, 24,
/* 0x0240 */ 140, 67, 0, 1,124,234, 16,249,125, 74, 14,112, 65,130, 0, 0,
/* 0x0250 */ 72, 0, 0, 12,125, 41, 72, 21, 65,162,255,113,125, 8, 65, 21,
/* 0x0260 */ 125, 41, 72, 21, 65,162,255,101,125, 8, 65, 21, 64,130, 0, 40,
/* 0x0270 */ 57, 0, 0, 1,125, 41, 72, 21, 65,162,255, 81,125, 8, 65, 21,
/* 0x0280 */ 124, 9, 0, 64,125, 41, 74, 20, 65,162,255, 65, 65,160,255,232,
/* 0x0290 */ 57, 8, 0, 2, 32,234,250,255, 57, 8, 0, 1,125, 8, 1,148,
/* 0x02a0 */ 124,234, 42, 20,125, 9, 3,166,141, 7, 0, 1,157, 5, 0, 1,
/* 0x02b0 */ 67, 32,255,248, 56,224, 1, 0,124, 7, 41,236,124, 7, 26, 44,
/* 0x02b0 */ 66, 0,255,248, 56,224, 1, 0,124, 7, 41,236,124, 7, 26, 44,
/* 0x02c0 */ 75,255,255, 44,124, 0, 41,236,125,168, 2,166, 40, 7, 0, 8,
/* 0x02d0 */ 64,130, 1, 60,144,166, 0, 0,124,132, 26, 20, 60, 0,128, 0,
/* 0x02e0 */ 61, 32,128, 0, 56, 99,255,255, 56,165,255,255, 57, 64,255,255,
/* 0x02f0 */ 72, 0, 1, 12, 57, 32, 0, 1,125, 41, 28, 44, 56, 99, 0, 4,
/* 0x0300 */ 124, 9, 0, 64,125, 41, 72, 20, 97, 41, 0, 1, 78,128, 0, 32,
/* 0x0310 */ 141, 3, 0, 1,157, 5, 0, 1,124, 9, 0, 64,125, 41, 74, 20,
/* 0x0320 */ 65,194,255,213, 65,225,255,236, 56,224, 0, 1, 72, 0, 0, 20,
/* 0x0330 */ 56,231,255,255,125, 41, 72, 21, 65,194,255,189,124,231, 57, 20,
/* 0x0340 */ 125, 41, 72, 21, 65,194,255,177,124,231, 57, 20,124, 9, 0, 64,
/* 0x0350 */ 125, 41, 74, 20, 65,194,255,161, 65,192,255,216, 57, 0, 0, 0,
/* 0x0360 */ 52,231,255,253, 84,231, 64, 46, 65,192, 0, 32,140, 67, 0, 1,
/* 0x0370 */ 124,234, 16,249,125, 74, 14,112, 65,194, 0, 0,112, 66, 0, 1,
/* 0x0380 */ 65,226, 0, 80, 72, 0, 0, 20,124, 9, 0, 64,125, 41, 74, 20,
/* 0x0390 */ 65,194,255,101, 65,225, 0, 60, 57, 0, 0, 1,124, 9, 0, 64,
/* 0x03a0 */ 125, 41, 74, 20, 65,194,255, 81, 65,225, 0, 40,125, 41, 72, 21,
/* 0x03b0 */ 65,194,255, 69,125, 8, 65, 20,124, 9, 0, 64,125, 41, 74, 20,
/* 0x03c0 */ 65,194,255, 53, 65,192,255,232, 57, 8, 0, 2, 72, 0, 0, 16,
/* 0x03d0 */ 125, 41, 72, 21, 65,194,255, 33,125, 8, 65, 20, 32,234,250,255,
/* 0x0320 */ 65,162,255,213, 65,129,255,236, 56,224, 0, 1, 72, 0, 0, 20,
/* 0x0330 */ 56,231,255,255,125, 41, 72, 21, 65,162,255,189,124,231, 57, 20,
/* 0x0340 */ 125, 41, 72, 21, 65,162,255,177,124,231, 57, 20,124, 9, 0, 64,
/* 0x0350 */ 125, 41, 74, 20, 65,162,255,161, 65,160,255,216, 57, 0, 0, 0,
/* 0x0360 */ 52,231,255,253, 84,231, 64, 46, 65,128, 0, 32,140, 67, 0, 1,
/* 0x0370 */ 124,234, 16,249,125, 74, 14,112, 65,130, 0, 0,112, 66, 0, 1,
/* 0x0380 */ 65,162, 0, 80, 72, 0, 0, 20,124, 9, 0, 64,125, 41, 74, 20,
/* 0x0390 */ 65,162,255,101, 65,161, 0, 60, 57, 0, 0, 1,124, 9, 0, 64,
/* 0x03a0 */ 125, 41, 74, 20, 65,162,255, 81, 65,161, 0, 40,125, 41, 72, 21,
/* 0x03b0 */ 65,162,255, 69,125, 8, 65, 20,124, 9, 0, 64,125, 41, 74, 20,
/* 0x03c0 */ 65,162,255, 53, 65,160,255,232, 57, 8, 0, 2, 72, 0, 0, 16,
/* 0x03d0 */ 125, 41, 72, 21, 65,162,255, 33,125, 8, 65, 20, 32,234,250,255,
/* 0x03e0 */ 57, 8, 0, 2,125, 8, 1,148,124,234, 42, 20,125, 9, 3,166,
/* 0x03f0 */ 141, 7, 0, 1,157, 5, 0, 1, 67, 32,255,248, 56,224, 1, 0,
/* 0x03f0 */ 141, 7, 0, 1,157, 5, 0, 1, 66, 0,255,248, 56,224, 1, 0,
/* 0x0400 */ 124, 7, 41,236,124, 7, 26, 44, 75,255,255, 16,128,230, 0, 0,
/* 0x0410 */ 125,168, 3,166,124,100, 24, 80,124,135, 40, 80, 56, 99, 0, 1,
/* 0x0420 */ 56,132, 0, 1,144,134, 0, 0, 96,231, 0, 31,124, 0, 56,108,
/* 0x0430 */ 124, 7, 40, 64,124, 0, 63,172, 56,231, 0, 32, 65,128,255,240,
/* 0x0440 */ 124, 0, 4,172, 76, 0, 1, 44, 78,128, 0, 32, 40, 7, 0, 14,
/* 0x0450 */ 64,130, 0, 0,124, 8, 2,166,124,201, 51,120,129, 6, 0, 0,
/* 0x0450 */ 64,130, 0, 32,124, 8, 2,166,124,201, 51,120,129, 6, 0, 0,
/* 0x0460 */ 124,167, 43,120, 56,164,255,254, 56,131, 0, 2,144, 1, 0, 8,
/* 0x0470 */ 136, 3, 0, 0, 84, 11,232,254, 84, 2, 7,126, 56, 96,250, 0,
/* 0x0480 */ 124, 99, 88, 48, 56, 99,241,124,124, 38, 11,120,124, 33, 26, 20,