Make it easier to change MAX_ELF_HDR consistently

https://github.com/upx/upx/issues/655

	new file:   MAX_ELF_HDR.cpp
	new file:   stub/src/MAX_ELF_HDR.S
	new file:   stub/src/MAX_ELF_HDR.c

	modified:   p_lx_elf.cpp
	modified:   stub/arm.v4a-linux.elf-fold.h
	modified:   stub/arm64-linux.elf-fold.h
	modified:   stub/src/amd64-linux.elf-fold.S
	modified:   stub/src/amd64-linux.elf-main.c
	modified:   stub/src/amd64-linux.elf-so_main.c
	modified:   stub/src/arm.v4a-linux.elf-fold.S
	modified:   stub/src/arm.v4a-linux.elf-so_fold.S
	modified:   stub/src/arm64-linux.elf-fold.S
	modified:   stub/src/arm64-linux.elf-so_fold.S
	modified:   stub/src/i386-bsd.elf-fold.S
	modified:   stub/src/i386-bsd.elf-main.c
	modified:   stub/src/i386-linux.elf-fold.S
	modified:   stub/src/i386-linux.elf-main.c
	modified:   stub/src/i386-linux.elf-so_main.c
	modified:   stub/src/i386-linux.elf.interp-fold.S
	modified:   stub/src/i386-linux.elf.interp-main.c
	modified:   stub/src/i386-linux.elf.shell-fold.S
	modified:   stub/src/i386-linux.elf.shell-main.c
	modified:   stub/src/i386-openbsd.elf-fold.S
	modified:   stub/src/i386-openbsd.elf-main.c
	modified:   stub/src/mipsel.r3000-linux.elf-fold.S
	modified:   ../.github/travis_testsuite_1-expected_sha256sums.sh
This commit is contained in:
John Reiser
2023-03-09 10:06:13 -08:00
parent ff7939c1c0
commit 17526d1132
26 changed files with 275 additions and 277 deletions
+4 -4
View File
@@ -32,8 +32,8 @@
#define STUB_ARM64_LINUX_ELF_FOLD_SIZE 2776
#define STUB_ARM64_LINUX_ELF_FOLD_ADLER32 0x4a2bc8dc
#define STUB_ARM64_LINUX_ELF_FOLD_CRC32 0x29e40c30
#define STUB_ARM64_LINUX_ELF_FOLD_ADLER32 0xdf4bc8ec
#define STUB_ARM64_LINUX_ELF_FOLD_CRC32 0x094b87d4
unsigned char stub_arm64_linux_elf_fold[2776] = {
/* 0x0000 */ 127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -59,9 +59,9 @@ unsigned char stub_arm64_linux_elf_fold[2776] = {
/* 0x0140 */ 247, 3, 0,170,225, 3, 6,170,129, 0, 0,249,226, 5, 0, 24,
/* 0x0150 */ 34, 68, 0,184,226,255,129, 82,160, 5, 0, 16,100, 0, 0,148,
/* 0x0160 */ 31, 4, 64,177, 66, 0, 0, 84, 95,104, 32, 56,231, 3, 20,170,
/* 0x0170 */ 230, 3, 25,170,255, 3, 40,209, 37, 5, 0, 16,228, 3, 24,170,
/* 0x0170 */ 230, 3, 25,170,255, 3, 48,209, 37, 5, 0, 16,228, 3, 24,170,
/* 0x0180 */ 227, 3, 22,170,226, 3, 0,145,225, 3, 29, 42,224, 3, 28,170,
/* 0x0190 */ 248, 1, 0,148,255, 3, 40,145,248, 3, 0,170, 33, 83, 64,249,
/* 0x0190 */ 248, 1, 0,148,255, 3, 48,145,248, 3, 0,170, 33, 83, 64,249,
/* 0x01a0 */ 224, 3, 25,170, 64, 0, 0,148, 5, 0,128,210,228, 3, 21, 42,
/* 0x01b0 */ 67, 0,128, 82, 34, 0,128, 82, 1, 0,130,210, 0, 0,128,210,
/* 0x01c0 */ 67, 0, 0,148,224, 3, 21, 42, 46, 0, 0,148,254, 3, 24,170,