powerpc-linux.elf-fold.S and -main.c handle /proc/self/exe

modified:   stub/src/amd64-linux.elf-main.c
	modified:   stub/src/powerpc-linux.elf-entry.S
	modified:   stub/src/powerpc-linux.elf-fold.S
	modified:   stub/src/powerpc-linux.elf-main.c

	modified:   stub/tmp/amd64-linux.elf-fold.map
	modified:   stub/amd64-linux.elf-fold.h
	modified:   stub/powerpc-linux.elf-entry.h
	modified:   stub/powerpc-linux.elf-fold.h
	modified:   stub/src/amd64-linux.elf-fold.S
	modified:   stub/tmp/powerpc-linux.elf-entry.bin.dump
	modified:   stub/tmp/powerpc-linux.elf-fold.map
This commit is contained in:
John Reiser
2017-04-22 20:18:00 -07:00
parent 9df4b6ea24
commit 391f511094
11 changed files with 629 additions and 514 deletions
+27 -28
View File
@@ -1,5 +1,5 @@
/* amd64-linux.elf-fold.h
created from amd64-linux.elf-fold.bin, 2036 (0x7f4) bytes
created from amd64-linux.elf-fold.bin, 2032 (0x7f0) bytes
This file is part of the UPX executable compressor.
@@ -31,20 +31,20 @@
*/
#define STUB_AMD64_LINUX_ELF_FOLD_SIZE 2036
#define STUB_AMD64_LINUX_ELF_FOLD_ADLER32 0x9382090d
#define STUB_AMD64_LINUX_ELF_FOLD_CRC32 0x31eb4b3d
#define STUB_AMD64_LINUX_ELF_FOLD_SIZE 2032
#define STUB_AMD64_LINUX_ELF_FOLD_ADLER32 0x06e1065d
#define STUB_AMD64_LINUX_ELF_FOLD_CRC32 0xc66d4cda
unsigned char stub_amd64_linux_elf_fold[2036] = {
unsigned char stub_amd64_linux_elf_fold[2032] = {
/* 0x0000 */ 127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0010 */ 2, 0, 62, 0, 1, 0, 0, 0,188, 0, 16, 0, 0, 0, 0, 0,
/* 0x0020 */ 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0030 */ 0, 0, 0, 0, 64, 0, 56, 0, 2, 0, 0, 0, 0, 0, 0, 0,
/* 0x0040 */ 1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0050 */ 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
/* 0x0060 */ 244, 7, 0, 0, 0, 0, 0, 0,244, 7, 0, 0, 0, 0, 0, 0,
/* 0x0060 */ 240, 7, 0, 0, 0, 0, 0, 0,240, 7, 0, 0, 0, 0, 0, 0,
/* 0x0070 */ 0, 0, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
/* 0x0080 */ 244, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0080 */ 240, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0090 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x00a0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
/* 0x00b0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,232, 89, 0, 0,
@@ -143,25 +143,24 @@ unsigned char stub_amd64_linux_elf_fold[2036] = {
/* 0x0680 */ 72,137, 52, 36, 72,137,116, 36, 16, 72,141,116, 36, 32, 72,137,
/* 0x0690 */ 84, 36, 40, 72,137,124, 36, 8, 76,137,194, 72,137,124, 36, 24,
/* 0x06a0 */ 72,137,231, 72,137, 68, 36, 32,232,215,251,255,255, 72,139, 85,
/* 0x06b0 */ 16,190, 3, 0, 0, 0, 72,137,223, 72,131,194, 64,232,207,252,
/* 0x06c0 */ 255,255, 73, 15,183, 84, 36, 56,190, 5, 0, 0, 0, 72,137,223,
/* 0x06d0 */ 232,188,252,255,255, 69, 15,183,116, 36, 16, 65,131,254, 3,117,
/* 0x06e0 */ 62, 72,139, 84, 36,112, 73, 3, 84, 36, 24,190, 9, 0, 0, 0,
/* 0x06f0 */ 102, 65,199, 68, 36, 16, 2, 0, 72,137,223,232,145,252,255,255,
/* 0x0700 */ 65, 15,183, 68, 36, 56,133,192,116, 21, 72,139, 84, 36,112, 72,
/* 0x0710 */ 1, 85, 16, 72, 1, 85, 24, 72,131,197, 56,255,200,117,240, 65,
/* 0x0720 */ 83, 77,137,249, 77,137,232, 49,210, 72,137,217, 72,141, 68, 36,
/* 0x0730 */ 120, 72,141,116, 36, 24, 76,137,231, 80,232,132,252,255,255, 65,
/* 0x0740 */ 89, 65,131,254, 3, 73,137,197, 65, 90,116, 16, 72,137,194,190,
/* 0x0750 */ 9, 0, 0, 0, 72,137,223,232, 53,252,255,255, 69, 49,246,102,
/* 0x0760 */ 65,131,124, 36, 56, 0, 73,141,108, 36, 64,116,117,131,125, 0,
/* 0x0770 */ 3,117, 93, 72,139,124, 36,112, 72, 3,125, 16, 49,210, 49,246,
/* 0x0780 */ 232,185,250,255,255,133,192,137,195,120, 23,186, 0, 4, 0, 0,
/* 0x0790 */ 76,137,230,137,199,232,160,250,255,255, 72, 61, 0, 4, 0, 0,
/* 0x07a0 */ 116, 10,191,127, 0, 0, 0,232,154,250,255,255, 65, 80, 49,246,
/* 0x07b0 */ 69, 49,201, 69, 49,192, 49,201,106, 0,137,218, 76,137,231,232,
/* 0x07c0 */ 255,251,255,255,137,223, 73,137,197,232,116,250,255,255, 94, 95,
/* 0x07d0 */ 65, 15,183, 68, 36, 56, 65,255,198, 72,131,197, 56, 65, 57,198,
/* 0x07e0 */ 114,139, 72,131,196, 56, 76,137,232, 91, 93, 65, 92, 65, 93, 65,
/* 0x07f0 */ 94, 65, 95,195
/* 0x06b0 */ 16,190, 3, 0, 0, 0, 72,137,223,232,211,252,255,255, 73, 15,
/* 0x06c0 */ 183, 84, 36, 56,190, 5, 0, 0, 0, 72,137,223,232,192,252,255,
/* 0x06d0 */ 255, 69, 15,183,116, 36, 16, 65,131,254, 3,117, 62, 72,139, 84,
/* 0x06e0 */ 36,112, 73, 3, 84, 36, 24,190, 9, 0, 0, 0,102, 65,199, 68,
/* 0x06f0 */ 36, 16, 2, 0, 72,137,223,232,149,252,255,255, 65, 15,183, 68,
/* 0x0700 */ 36, 56,133,192,116, 21, 72,139, 84, 36,112, 72, 1, 85, 16, 72,
/* 0x0710 */ 1, 85, 24, 72,131,197, 56,255,200,117,240, 65, 83, 77,137,249,
/* 0x0720 */ 77,137,232, 49,210, 72,137,217, 72,141, 68, 36,120, 72,141,116,
/* 0x0730 */ 36, 24, 76,137,231, 80,232,136,252,255,255, 65, 89, 65,131,254,
/* 0x0740 */ 3, 73,137,197, 65, 90,116, 16, 72,137,194,190, 9, 0, 0, 0,
/* 0x0750 */ 72,137,223,232, 57,252,255,255, 69, 49,246,102, 65,131,124, 36,
/* 0x0760 */ 56, 0, 73,141,108, 36, 64,116,117,131,125, 0, 3,117, 93, 72,
/* 0x0770 */ 139,124, 36,112, 72, 3,125, 16, 49,210, 49,246,232,189,250,255,
/* 0x0780 */ 255,133,192,137,195,120, 23,186, 0, 4, 0, 0, 76,137,230,137,
/* 0x0790 */ 199,232,164,250,255,255, 72, 61, 0, 4, 0, 0,116, 10,191,127,
/* 0x07a0 */ 0, 0, 0,232,158,250,255,255, 65, 80, 49,246, 69, 49,201, 69,
/* 0x07b0 */ 49,192, 49,201,106, 0,137,218, 76,137,231,232, 3,252,255,255,
/* 0x07c0 */ 137,223, 73,137,197,232,120,250,255,255, 94, 95, 65, 15,183, 68,
/* 0x07d0 */ 36, 56, 65,255,198, 72,131,197, 56, 65, 57,198,114,139, 72,131,
/* 0x07e0 */ 196, 56, 76,137,232, 91, 93, 65, 92, 65, 93, 65, 94, 65, 95,195
};