Nice message for ancient Linux lacking memfd_create

... or O_TMPFILE for recovery using /dev/shm
https://github.com/upx/upx/issues/889
	modified:   stub/src/upxfd_linux.c
	modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
           plus generated  .h  .map  .dump
This commit is contained in:
John Reiser
2025-03-02 11:46:17 -08:00
parent 6998449715
commit 70f1ab8cb7
41 changed files with 24087 additions and 23727 deletions
+23 -21
View File
@@ -16,33 +16,35 @@ Linker script and memory map
0x0000000000000010 get4unal
0x0000000000000128 close
SYSCALLS 0x0000000000000000 0x1b4
SYSCALLS 0x0000000000000000 0x1b4 tmp/mips.r3000-linux.elf-fold.o
0x0000000000000174 munmap
0x0000000000000144 getpid
SYSCALLS 0x0000000000000000 0x1c4
SYSCALLS 0x0000000000000000 0x1c4 tmp/mips.r3000-linux.elf-fold.o
0x0000000000000184 munmap
0x0000000000000154 getpid
0x0000000000000094 memcpy
0x0000000000000194 readlink
0x00000000000001a4 readlink
0x0000000000000034 Psync
0x00000000000000bc mempcpy
0x000000000000013c ftruncate
0x000000000000014c lseek
0x000000000000014c ftruncate
0x000000000000015c lseek
0x00000000000000f0 mmap
0x00000000000000e4 mmap_privanon
0x000000000000019c uname
0x00000000000001ac write
0x0000000000000154 memfd_create
0x000000000000018c read
0x00000000000001a4 unlink
0x00000000000001ac uname
0x00000000000001bc write
0x0000000000000130 sysret_incl
0x0000000000000164 memfd_create
0x000000000000019c read
0x00000000000001b4 unlink
0x0000000000000074 memset
0x000000000000016c msync
0x000000000000017c msync
0x0000000000000068 my_bkpt
0x0000000000000000 Pprotect
0x000000000000017c stat
0x000000000000012c exit
0x0000000000000134 brk
0x0000000000000184 open
0x0000000000000164 mprotect
0x000000000000015c mkdir
0x000000000000018c stat
0x000000000000013c exit
0x0000000000000144 brk
0x000000000000012c sysgo_incl
0x0000000000000194 open
0x0000000000000174 mprotect
0x000000000000016c mkdir
HUMF_A 0x0000000000000000 0x8
HUMF_A 0x0000000000000000 0x8 tmp/mips.r3000-linux.elf-fold.o
@@ -50,8 +52,8 @@ HUMF_A 0x0000000000000000 0x8
HUMF_L 0x0000000000000000 0x8
HUMF_L 0x0000000000000000 0x8 tmp/mips.r3000-linux.elf-fold.o
UMF_LINUX 0x0000000000000000 0x108
UMF_LINUX 0x0000000000000000 0x108 tmp/mips.r3000-linux.elf-fold.o
UMF_LINUX 0x0000000000000000 0x174
UMF_LINUX 0x0000000000000000 0x174 tmp/mips.r3000-linux.elf-fold.o
0x0000000000000000 upx_mmap_and_fd_linux
EXP_HEAD 0x0000000000000000 0xfc