ELF2 for mips 32-bit main programs

modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
	modified:   stub/src/include/linux.h
	modified:   p_lx_elf.cpp
	modified:   stub/Makefile
	modified:   stub/src/arch/mips/r3000/lzma_d.S
	modified:   stub/src/arch/mips/r3000/macros.ash
	modified:   stub/src/arm.v4a-linux.elf-fold.S
	modified:   stub/src/arm.v4a-linux.elf-main2.c
	modified:   stub/src/arm.v4a-linux.elf-so_fold.lds
	modified:   stub/src/arm.v5a-linux.elf-so_fold.lds
	modified:   stub/src/arm64-linux.elf-so_fold.lds
	modified:   stub/src/i386-expand.S
	modified:   stub/src/i386-linux.elf-entry.lds
	modified:   stub/src/i386-linux.elf-main2.c
	modified:   stub/src/i386-linux.elf-so_fold.lds
	new file:   stub/src/mips.r3000-expand.S
	new file:   stub/src/mips.r3000-linux.elf-entry.lds
	modified:   stub/src/mips.r3000-linux.elf-fold.S
	modified:   stub/src/mips.r3000-linux.elf-fold.lds
	new file:   stub/src/mips.r3000-linux.elf-main2.c
	new file:   stub/src/mipsel.r3000-expand.S
	modified:   stub/src/mipsel.r3000-linux.elf-entry.S
	new file:   stub/src/mipsel.r3000-linux.elf-entry.lds
	modified:   stub/src/mipsel.r3000-linux.elf-fold.S
	modified:   stub/src/mipsel.r3000-linux.elf-fold.lds
	new file:   stub/src/mipsel.r3000-linux.elf-main2.c
	modified:   stub/src/mipsel.r3000-linux.shlib-init.S
	modified:   stub/src/powerpc-linux.elf-fold.lds
	modified:   stub/src/upxfd_android.c
           plus generated *.h *.map *.dump
This commit is contained in:
John Reiser
2024-07-16 13:36:26 -07:00
parent b26ba9c4d3
commit cc87a2c867
55 changed files with 17290 additions and 14683 deletions
+16 -16
View File
@@ -33,8 +33,8 @@
/* clang-format off */
#define STUB_POWERPC_LINUX_ELF_FOLD_SIZE 17489
#define STUB_POWERPC_LINUX_ELF_FOLD_ADLER32 0xcf71467b
#define STUB_POWERPC_LINUX_ELF_FOLD_CRC32 0x2aee96b4
#define STUB_POWERPC_LINUX_ELF_FOLD_ADLER32 0x415e46e5
#define STUB_POWERPC_LINUX_ELF_FOLD_CRC32 0x50274787
unsigned char stub_powerpc_linux_elf_fold[17489] = {
/* 0x0000 */ 127, 69, 76, 70, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -181,16 +181,16 @@ unsigned char stub_powerpc_linux_elf_fold[17489] = {
/* 0x08d0 */ 144,159, 0, 12,144,191, 0, 16,144,223, 0, 20,144,255, 0, 24,
/* 0x08e0 */ 56, 0,255,255,144, 31, 0, 28, 56, 0, 0, 0,144, 31, 0, 32,
/* 0x08f0 */ 56, 0, 0, 0,144, 31, 0, 36,129, 63, 0, 8, 56, 9, 0, 34,
/* 0x0900 */ 144, 31, 0, 8,129, 63, 0, 16, 56, 9,255,255,144, 31, 0, 16,
/* 0x0910 */ 47,128, 0, 0, 65,156, 0,124,129, 63, 0, 12,128, 9, 0, 0,
/* 0x0920 */ 47,128, 0, 1, 64,158, 0, 92,129, 63, 0, 12,129, 41, 0, 8,
/* 0x0930 */ 128, 31, 0, 28,127,137, 0, 64, 64,156, 0, 16,129, 63, 0, 12,
/* 0x0940 */ 128, 9, 0, 8,144, 31, 0, 28,129, 63, 0, 12,129,127, 0, 12,
/* 0x0950 */ 129, 41, 0, 20,128, 11, 0, 8,125, 41, 2, 20,128, 31, 0, 32,
/* 0x0960 */ 127,137, 0, 64, 64,157, 0, 28,129, 63, 0, 12,129,127, 0, 12,
/* 0x0970 */ 129, 41, 0, 20,128, 11, 0, 8,124, 9, 2, 20,144, 31, 0, 32,
/* 0x0980 */ 129, 63, 0, 12, 56, 9, 0, 32,144, 31, 0, 12, 75,255,255,120,
/* 0x0990 */ 72, 0, 0, 1,124, 96, 27,120,144, 31, 0, 40,129, 63, 0, 28,
/* 0x0900 */ 144, 31, 0, 8, 72, 0, 0, 1,124, 96, 27,120,144, 31, 0, 40,
/* 0x0910 */ 129, 63, 0, 16, 56, 9,255,255,144, 31, 0, 16, 47,128, 0, 0,
/* 0x0920 */ 65,156, 0,124,129, 63, 0, 12,128, 9, 0, 0, 47,128, 0, 1,
/* 0x0930 */ 64,158, 0, 92,129, 63, 0, 12,129, 41, 0, 8,128, 31, 0, 28,
/* 0x0940 */ 127,137, 0, 64, 64,156, 0, 16,129, 63, 0, 12,128, 9, 0, 8,
/* 0x0950 */ 144, 31, 0, 28,129, 63, 0, 12,129,127, 0, 12,129, 41, 0, 20,
/* 0x0960 */ 128, 11, 0, 8,125, 41, 2, 20,128, 31, 0, 32,127,137, 0, 64,
/* 0x0970 */ 64,157, 0, 28,129, 63, 0, 12,129,127, 0, 12,129, 41, 0, 20,
/* 0x0980 */ 128, 11, 0, 8,124, 9, 2, 20,144, 31, 0, 32,129, 63, 0, 12,
/* 0x0990 */ 56, 9, 0, 32,144, 31, 0, 12, 75,255,255,120,129, 63, 0, 28,
/* 0x09a0 */ 128, 31, 0, 40,125, 32, 0, 56,144, 31, 0, 28,129, 63, 0, 32,
/* 0x09b0 */ 128, 31, 0, 28,125, 32, 72, 80,128, 31, 0, 40,125, 32, 72, 80,
/* 0x09c0 */ 57, 41,255,255,128, 31, 0, 40,125, 32, 0, 56,144, 31, 0, 32,
@@ -326,8 +326,8 @@ unsigned char stub_powerpc_linux_elf_fold[17489] = {
/* 0x11e0 */ 128, 11, 0, 0,124, 9, 2, 20,144, 31, 0, 76,128,127, 0, 76,
/* 0x11f0 */ 56,128, 0, 0, 56,160, 0, 0, 72, 0, 0, 1,124, 96, 27,120,
/* 0x1200 */ 144, 31, 0, 80,128, 31, 0, 80, 47,128, 0, 0, 64,156, 0, 8,
/* 0x1210 */ 72, 0, 0, 32,128,127, 0, 80,128,159, 0, 24, 56,160, 4, 0,
/* 0x1220 */ 72, 0, 0, 1,124, 96, 27,120, 47,128, 4, 0, 65,158, 0, 12,
/* 0x1210 */ 72, 0, 0, 32,128,127, 0, 80,128,159, 0, 24, 56,160, 2, 0,
/* 0x1220 */ 72, 0, 0, 1,124, 96, 27,120, 47,128, 2, 0, 65,158, 0, 12,
/* 0x1230 */ 56, 96, 0,127, 72, 0, 0, 1,129, 63, 0, 56, 56, 0, 0, 0,
/* 0x1240 */ 144, 9, 0, 0,128,127, 0, 24, 56,128, 0, 0,128,191, 0, 80,
/* 0x1250 */ 56,192, 0, 0,128,255, 0, 56, 75,255,248, 29,124, 96, 27,120,
@@ -866,7 +866,7 @@ unsigned char stub_powerpc_linux_elf_fold[17489] = {
/* 0x33a0 */ 0, 0, 7,220, 0, 0, 28, 10, 0, 0, 0, 0, 0, 0, 8, 56,
/* 0x33b0 */ 0, 0, 16, 10, 0, 0, 0, 0, 0, 0, 8, 84, 0, 0, 19, 10,
/* 0x33c0 */ 0, 0, 0, 0, 0, 0, 8,104, 0, 0, 16, 10, 0, 0, 0, 0,
/* 0x33d0 */ 0, 0, 9, 92, 0, 0, 13, 10, 0, 0, 0, 0, 0, 0, 9,252,
/* 0x33d0 */ 0, 0, 8,208, 0, 0, 13, 10, 0, 0, 0, 0, 0, 0, 9,252,
/* 0x33e0 */ 0, 0, 19, 10, 0, 0, 0, 0, 0, 0, 11, 20, 0, 0, 14, 10,
/* 0x33f0 */ 0, 0, 0, 0, 0, 0, 11,120, 0, 0, 13, 10, 0, 0, 0, 0,
/* 0x3400 */ 0, 0, 13,156, 0, 0, 15, 10, 0, 0, 0, 0, 0, 0, 14, 40,
@@ -1055,7 +1055,7 @@ unsigned char stub_powerpc_linux_elf_fold[17489] = {
/* 0x3f70 */ 95, 82, 69, 76, 50, 52, 32, 32, 32, 32, 32, 32, 32,109,109, 97,
/* 0x3f80 */ 112, 10, 48, 48, 48, 48, 48, 56, 54, 56, 32, 82, 95, 80, 80, 67,
/* 0x3f90 */ 95, 82, 69, 76, 50, 52, 32, 32, 32, 32, 32, 32, 32,109,101,109,
/* 0x3fa0 */ 99,112,121, 10, 48, 48, 48, 48, 48, 57, 53, 99, 32, 82, 95, 80,
/* 0x3fa0 */ 99,112,121, 10, 48, 48, 48, 48, 48, 56,100, 48, 32, 82, 95, 80,
/* 0x3fb0 */ 80, 67, 95, 82, 69, 76, 50, 52, 32, 32, 32, 32, 32, 32, 32,103,
/* 0x3fc0 */ 101,116, 95,112, 97,103,101, 95,109, 97,115,107, 10, 48, 48, 48,
/* 0x3fd0 */ 48, 48, 57,102, 99, 32, 82, 95, 80, 80, 67, 95, 82, 69, 76, 50,