stubs *.elf-main.c: tighten input to first decompress of ELF headers

modified:   stub/src/amd64-linux.elf-main.c
	modified:   stub/src/i386-linux.elf-main.c
	also .h, .map
This commit is contained in:
John Reiser
2017-10-14 06:21:44 -07:00
parent a3e51e6dee
commit ad3f63b5c4
12 changed files with 505 additions and 498 deletions
+31 -31
View File
@@ -1,5 +1,5 @@
/* mips.r3000-linux.elf-fold.h
created from mips.r3000-linux.elf-fold.bin, 2572 (0xa0c) bytes
created from mips.r3000-linux.elf-fold.bin, 2576 (0xa10) bytes
This file is part of the UPX executable compressor.
@@ -31,17 +31,17 @@
*/
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_SIZE 2572
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_ADLER32 0x82082a81
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_CRC32 0x282d6337
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_SIZE 2576
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_ADLER32 0x420e2b36
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_CRC32 0x03b20116
unsigned char stub_mips_r3000_linux_elf_fold[2572] = {
unsigned char stub_mips_r3000_linux_elf_fold[2576] = {
/* 0x0000 */ 127, 69, 76, 70, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0010 */ 0, 2, 0, 8, 0, 0, 0, 1, 0, 16, 0,128, 0, 0, 0, 52,
/* 0x0020 */ 0, 0, 0, 0, 0, 0, 48, 1, 0, 52, 0, 32, 0, 2, 0, 0,
/* 0x0030 */ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 16, 0, 0,
/* 0x0040 */ 0, 16, 0, 0, 0, 0, 10, 12, 0, 0, 10, 16, 0, 0, 0, 5,
/* 0x0050 */ 0, 0, 16, 0, 0, 0, 0, 1, 0, 0, 10, 12, 0, 0, 0, 0,
/* 0x0040 */ 0, 16, 0, 0, 0, 0, 10, 16, 0, 0, 10, 16, 0, 0, 0, 5,
/* 0x0050 */ 0, 0, 16, 0, 0, 0, 0, 1, 0, 0, 10, 16, 0, 0, 0, 0,
/* 0x0060 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0070 */ 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0080 */ 36, 2, 0, 0, 3,224, 0, 8, 0, 2, 18, 64, 0, 0, 0, 0,
@@ -173,28 +173,28 @@ unsigned char stub_mips_r3000_linux_elf_fold[2572] = {
/* 0x0860 */ 143,177, 0, 52,143,176, 0, 48, 3,224, 0, 8, 39,189, 0, 88,
/* 0x0870 */ 39,189,255,192,175,191, 0, 56,175,181, 0, 52,175,180, 0, 48,
/* 0x0880 */ 175,179, 0, 44,175,178, 0, 40,175,177, 0, 36,175,176, 0, 32,
/* 0x0890 */ 1, 0,136, 33,140,136, 0, 0, 0,160, 24, 33, 0,128, 16, 33,
/* 0x08a0 */ 0,192,152, 33, 0,224,160, 33, 1, 64,144, 33, 2, 32, 48, 33,
/* 0x08b0 */ 1, 32,128, 33, 1, 96,168, 33, 39,164, 0, 20, 39,165, 0, 4,
/* 0x08c0 */ 0, 0, 56, 33,175,163, 0, 20,175,163, 0, 12,175,168, 0, 4,
/* 0x08d0 */ 175,162, 0, 24,175,162, 0, 16, 4, 17,254,112,175,179, 0, 8,
/* 0x08e0 */ 2, 32, 32, 33, 2, 0, 72, 33, 2, 64, 80, 33, 2, 96, 40, 33,
/* 0x08f0 */ 39,166, 0, 12, 2,128, 56, 33, 3,160, 64, 33, 2,160, 88, 33,
/* 0x0900 */ 4, 17,254,216,175,178, 0, 0, 0, 64, 48, 33, 2,128, 32, 33,
/* 0x0910 */ 36, 5, 0, 9, 4, 17,254,200, 0, 64,136, 33,150,102, 0, 44,
/* 0x0920 */ 38,100, 0, 52, 16, 0, 0, 44, 0, 0, 40, 33,140,131, 0, 0,
/* 0x0930 */ 36, 2, 0, 3, 20, 98, 0, 40, 36,132, 0, 32, 36,132,255,224,
/* 0x0940 */ 140,130, 0, 8,143,164, 0, 0, 0, 0, 40, 33, 0, 68, 32, 33,
/* 0x0950 */ 0, 0, 48, 33, 4, 17,254, 45, 36, 2, 15,165, 4, 64, 0, 9,
/* 0x0960 */ 0, 64,128, 33, 0, 64, 32, 33, 2, 96, 40, 33, 36, 6, 2, 0,
/* 0x0970 */ 4, 17,254, 38, 36, 2, 15,163, 36, 3, 2, 0, 16, 67, 0, 6,
/* 0x0980 */ 2,160, 88, 33, 36, 4, 0,127, 4, 17,254, 32, 36, 2, 15,161,
/* 0x0990 */ 16, 0,255,255, 0, 0, 0, 0, 2,128, 56, 33, 3,160, 64, 33,
/* 0x09a0 */ 0, 0, 72, 33, 0, 0, 80, 33, 4, 17,254,174, 0, 0, 48, 33,
/* 0x09b0 */ 143,166, 0, 0, 2,128, 32, 33, 36, 5, 0, 7, 4, 17,254,158,
/* 0x09c0 */ 0, 64,136, 33, 2, 0, 32, 33, 4, 17,254, 16, 36, 2, 15,166,
/* 0x09d0 */ 16, 0, 0, 5, 2, 32, 16, 33, 0,166, 16, 42, 20, 64,255,211,
/* 0x09e0 */ 36,165, 0, 1, 2, 32, 16, 33,143,191, 0, 56,143,181, 0, 52,
/* 0x09f0 */ 143,180, 0, 48,143,179, 0, 44,143,178, 0, 40,143,177, 0, 36,
/* 0x0a00 */ 143,176, 0, 32, 3,224, 0, 8, 39,189, 0, 64
/* 0x0890 */ 140,130, 0, 4, 1, 0,136, 33,140,136, 0, 0, 0,128, 24, 33,
/* 0x08a0 */ 0,192,152, 33, 0,224,160, 33, 1, 64,144, 33, 36, 66, 0, 12,
/* 0x08b0 */ 2, 32, 48, 33,175,165, 0, 12, 1, 32,128, 33, 1, 96,168, 33,
/* 0x08c0 */ 39,164, 0, 20, 39,165, 0, 4, 0, 0, 56, 33,175,163, 0, 16,
/* 0x08d0 */ 175,163, 0, 24,175,168, 0, 4,175,162, 0, 20, 4, 17,254,111,
/* 0x08e0 */ 175,179, 0, 8, 2, 32, 32, 33, 2, 0, 72, 33, 2, 64, 80, 33,
/* 0x08f0 */ 2, 96, 40, 33, 39,166, 0, 12, 2,128, 56, 33, 3,160, 64, 33,
/* 0x0900 */ 2,160, 88, 33, 4, 17,254,215,175,178, 0, 0, 0, 64, 48, 33,
/* 0x0910 */ 2,128, 32, 33, 36, 5, 0, 9, 4, 17,254,199, 0, 64,136, 33,
/* 0x0920 */ 150,102, 0, 44, 38,100, 0, 52, 16, 0, 0, 44, 0, 0, 40, 33,
/* 0x0930 */ 140,131, 0, 0, 36, 2, 0, 3, 20, 98, 0, 40, 36,132, 0, 32,
/* 0x0940 */ 36,132,255,224,140,130, 0, 8,143,164, 0, 0, 0, 0, 40, 33,
/* 0x0950 */ 0, 68, 32, 33, 0, 0, 48, 33, 4, 17,254, 44, 36, 2, 15,165,
/* 0x0960 */ 4, 64, 0, 9, 0, 64,128, 33, 0, 64, 32, 33, 2, 96, 40, 33,
/* 0x0970 */ 36, 6, 2, 0, 4, 17,254, 37, 36, 2, 15,163, 36, 3, 2, 0,
/* 0x0980 */ 16, 67, 0, 6, 2,160, 88, 33, 36, 4, 0,127, 4, 17,254, 31,
/* 0x0990 */ 36, 2, 15,161, 16, 0,255,255, 0, 0, 0, 0, 2,128, 56, 33,
/* 0x09a0 */ 3,160, 64, 33, 0, 0, 72, 33, 0, 0, 80, 33, 4, 17,254,173,
/* 0x09b0 */ 0, 0, 48, 33,143,166, 0, 0, 2,128, 32, 33, 36, 5, 0, 7,
/* 0x09c0 */ 4, 17,254,157, 0, 64,136, 33, 2, 0, 32, 33, 4, 17,254, 15,
/* 0x09d0 */ 36, 2, 15,166, 16, 0, 0, 5, 2, 32, 16, 33, 0,166, 16, 42,
/* 0x09e0 */ 20, 64,255,211, 36,165, 0, 1, 2, 32, 16, 33,143,191, 0, 56,
/* 0x09f0 */ 143,181, 0, 52,143,180, 0, 48,143,179, 0, 44,143,178, 0, 40,
/* 0x0a00 */ 143,177, 0, 36,143,176, 0, 32, 3,224, 0, 8, 39,189, 0, 64
};