Fix recovery of readlink() when /proc/self/exe is missing

https://github.com/upx/upx/issues/897
	modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
	modified:   stub/src/arm.v4a-linux.elf-fold.S
           plus generated .h
This commit is contained in:
John Reiser
2025-03-16 12:37:57 -07:00
parent 6f650ca16f
commit 1c5fae74e0
5 changed files with 31 additions and 31 deletions
+3 -3
View File
@@ -33,8 +33,8 @@
/* clang-format off */
#define STUB_ARM_V4A_LINUX_ELF_FOLD_SIZE 36672
#define STUB_ARM_V4A_LINUX_ELF_FOLD_ADLER32 0x142e9fd4
#define STUB_ARM_V4A_LINUX_ELF_FOLD_CRC32 0x422aa73a
#define STUB_ARM_V4A_LINUX_ELF_FOLD_ADLER32 0x0cafa044
#define STUB_ARM_V4A_LINUX_ELF_FOLD_CRC32 0xf1684c51
unsigned char stub_arm_v4a_linux_elf_fold[36672] = {
/* 0x0000 */ 127, 69, 76, 70, 1, 1, 1, 97, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -63,7 +63,7 @@ unsigned char stub_arm_v4a_linux_elf_fold[36672] = {
/* 0x0170 */ 122, 0, 0, 26,144, 0, 79,226, 0, 16,160,227, 5,112,160,227,
/* 0x0180 */ 0, 0, 0,239, 0,128,160,225, 1, 42,160,227, 9, 16,160,225,
/* 0x0190 */ 172, 0, 79,226, 1, 32, 66,226, 85,112,160,227, 0, 0, 0,239,
/* 0x01a0 */ 1, 10,112,227, 0, 16,160, 33, 14, 0,160, 35, 0, 32,129,224,
/* 0x01a0 */ 1, 10,112,227,192, 16, 79, 34, 14, 0,160, 35, 0, 32,129,224,
/* 0x01b0 */ 6, 0,160,225, 0, 48,160,227, 1, 48, 96,229, 1, 48,114,229,
/* 0x01c0 */ 1, 48, 96,229, 2, 0, 81,225, 96, 0, 0, 26, 61, 48,160,227,
/* 0x01d0 */ 1, 48, 96,229, 32, 48,160,227, 1, 48, 96,229, 1, 48, 96,229,