ELF2 main programs pass src/testsuite and upx-testsuite-v2

Decompressing lzma required many adjustments.
Backwards compatibility probably is broken for
    stub/amd64-win64.pe.h
    stub/arm64-win64.pe.h
Also: shared libraries need memfd_create.
	modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
	modified:   p_lx_elf.cpp
	modified:   stub/Makefile
	modified:   stub/scripts/xstrip.py
	modified:   stub/src/amd64-expand.S
	modified:   stub/src/arch/amd64/lzma_d.S
	modified:   stub/src/arch/arm/v4a/lzma_d.S
	modified:   stub/src/arch/arm/v4t/macros.S
	modified:   stub/src/arch/arm64/v8/lzma_d.S
	modified:   stub/src/arch/powerpc/32/lzma_d.S
	modified:   stub/src/arch/powerpc/64le/lzma_d-common.S
	modified:   stub/src/arm.v4a-expand.S
	modified:   stub/src/arm.v4t-linux.shlib-init.S
	modified:   stub/src/arm64-expand.S
	modified:   stub/src/i386-expand.S
	modified:   stub/src/mips.r3000-expand.S
	modified:   stub/src/powerpc-expand.S
	modified:   stub/src/powerpc-linux.elf-entry.S
	modified:   stub/src/powerpc-linux.elf-fold.S
	modified:   stub/src/powerpc64-expand.S
	modified:   stub/src/powerpc64-linux.elf-entry.S
	modified:   stub/src/powerpc64-linux.elf-fold.S
           plus generated *.h *.map *.dump
This commit is contained in:
John Reiser
2024-07-25 13:36:02 -07:00
parent e6f3c1b3da
commit ea2a190bd1
87 changed files with 29531 additions and 30001 deletions
+54 -51
View File
@@ -7,71 +7,74 @@ Name Origin Length Attributes
Linker script and memory map
.text 0x0000000000000000 0x1aa4
.text 0x0000000000000000 0x320 tmp/arm.v4a-linux.elf-fold.o
.text 0x0000000000000000 0xfcc
.text 0x0000000000000000 0x344 tmp/arm.v4a-linux.elf-fold.o
0x0000000000000004 get_page_mask
0x00000000000002c0 memcpy
0x0000000000000304 mempcpy
0x0000000000000054 mmap
0x000000000000003c mmap_privanon
0x00000000000002e4 memcpy
0x0000000000000328 mempcpy
0x0000000000000060 mmap
0x0000000000000048 mmap_privanon
0x000000000000000c get_upxfn_path
0x00000000000002e4 memset
0x0000000000000308 memset
0x0000000000000024 Pprotect
0x00000000fffffff4 PAGE_MASK
0x0000000000000024 mprotect
.text 0x0000000000000320 0x3ec tmp/arm.v4a-linux.elf-upxfd_android.o
0x0000000000000558 upx_mmap_and_fd
.text 0x000000000000070c 0x0 tmp/arm.v4a-expand.o
.text 0x000000000000070c 0x1398 tmp/arm.v4a-linux.elf-main2.o
0x00000000000019fc underlay
0x00000000000017a0 upx_main
.text 0x0000000000000344 0x3ec tmp/arm.v4a-linux.elf-upxfd_android.o
0x000000000000057c upx_mmap_and_fd
.text 0x0000000000000730 0x0 tmp/arm.v4a-expand.o
.text 0x0000000000000730 0x89c tmp/arm.v4a-linux.elf-main2.o
0x0000000000000f68 underlay
0x0000000000000e38 upx_main
SYSCALLS 0x0000000000000000 0x10c
SYSCALLS 0x0000000000000000 0x10c tmp/arm.v4a-linux.elf-fold.o
0x000000000000005c munmap
SYSCALLS 0x0000000000000000 0x214
SYSCALLS 0x0000000000000000 0x214 tmp/arm.v4a-linux.elf-fold.o
0x00000000000000ec munmap
0x0000000000000000 get_sys_munmap
0x000000000000003c getpid
0x0000000000000074 readlink
0x00000000000000b0 __udivsi3
0x0000000000000034 ftruncate
0x0000000000000044 lseek
0x000000000000009c __clear_cache
0x0000000000000084 uname
0x0000000000000094 write
0x000000000000002c fstat
0x000000000000001c fdatasync
0x000000000000004c memfd_create
0x000000000000006c read
0x000000000000008c unlink
0x00000000000000a8 my_bkpt
0x0000000000000024 fsync
0x000000000000007c stat
0x0000000000000018 exit
0x0000000000000090 getpid
0x0000000000000128 readlink
0x00000000000001b8 __udivsi3
0x000000000000007c ftruncate
0x00000000000000a4 lseek
0x000000000000018c __clear_cache
0x0000000000000150 uname
0x0000000000000178 write
0x0000000000000068 fstat
0x0000000000000040 fdatasync
0x00000000000000b8 memfd_create
0x0000000000000114 read
0x0000000000000164 unlink
0x00000000000001b0 my_bkpt
0x0000000000000054 fsync
0x000000000000013c stat
0x0000000000000030 exit
0x0000000000000008 brk
0x0000000000000064 open
0x00000000000000b0 div10
0x0000000000000054 mkdir
0x0000000000000010 close
0x0000000000000100 open
0x00000000000001b8 div10
0x00000000000000d8 mkdir
0x000000000000001c close
EXP_HEAD 0x0000000000000000 0xdc
EXP_HEAD 0x0000000000000000 0xdc tmp/arm.v4a-expand.o
0x0000000000000070 f_expand
EXP_HEAD 0x0000000000000000 0xe0
EXP_HEAD 0x0000000000000000 0xe0 tmp/arm.v4a-expand.o
0x0000000000000074 f_expand
EXP_TAIL 0x0000000000000000 0x24
EXP_TAIL 0x0000000000000000 0x24 tmp/arm.v4a-expand.o
0x0000000000000000 eof
NRV2E 0x0000000000000000 0x114
NRV2E 0x0000000000000000 0x114 tmp/arm.v4a-expand.o
0x0000000000000000 ucl_nrv2e_decompress_8
NRV2E 0x0000000000000000 0x11c
NRV2E 0x0000000000000000 0x11c tmp/arm.v4a-expand.o
0x0000000000000008 ucl_nrv2e_decompress_8
NRV2D 0x0000000000000000 0x100
NRV2D 0x0000000000000000 0x100 tmp/arm.v4a-expand.o
0x0000000000000000 ucl_nrv2d_decompress_8
NRV2D 0x0000000000000000 0x108
NRV2D 0x0000000000000000 0x108 tmp/arm.v4a-expand.o
0x0000000000000008 ucl_nrv2d_decompress_8
NRV2B 0x0000000000000000 0xc4
NRV2B 0x0000000000000000 0xc4 tmp/arm.v4a-expand.o
0x0000000000000000 ucl_nrv2b_decompress_8
NRV2B 0x0000000000000000 0xcc
NRV2B 0x0000000000000000 0xcc tmp/arm.v4a-expand.o
0x0000000000000008 ucl_nrv2b_decompress_8
LZMA_DAISY 0x0000000000000000 0x8
LZMA_DAISY 0x0000000000000000 0x8 tmp/arm.v4a-expand.o
.data 0x0000000000000000 0x0
.data 0x0000000000000000 0x0 tmp/arm.v4a-linux.elf-fold.o
@@ -92,8 +95,8 @@ LOAD tmp/arm.v4a-expand.o
LOAD tmp/arm.v4a-linux.elf-main2.o
OUTPUT(tmp/arm.v4a-linux.elf-fold.bin elf32-littlearm)
LZMA_ELF00 0x0000000000000000 0x90
LZMA_ELF00 0x0000000000000000 0x90 tmp/arm.v4a-expand.o
LZMA_ELF00 0x0000000000000000 0x80
LZMA_ELF00 0x0000000000000000 0x80 tmp/arm.v4a-expand.o
LZMA_DEC20 0x0000000000000000 0x938
LZMA_DEC20 0x0000000000000000 0x938 tmp/arm.v4a-expand.o