ELF2 for arm32

modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
	modified:   p_lx_elf.cpp
	modified:   stub/Makefile
	modified:   stub/src/arm.v4a-linux.elf-entry.S
	new file:   stub/src/arm.v4a-linux.elf-entry.lds
	modified:   stub/src/arm.v4a-linux.elf-fold.S
	modified:   stub/src/arm.v4a-linux.elf-fold.lds
	new file:   stub/src/arm.v4a-linux.elf-main2.c
	new file:   stub/src/arm.v4a-linux.elf-so_entry.lds
	new file:   stub/src/arm.v5a-linux.elf-entry.lds
	new file:   stub/src/arm.v5a-linux.elf-fold.lds
	new file:   stub/src/arm.v5a-linux.elf-main2.c
	new file:   stub/src/arm.v5a-linux.elf-so_entry.lds
	new file:   stub/src/armeb.v4a-expand.S
	new file:   stub/src/armeb.v4a-linux.elf-entry.lds
	modified:   stub/src/armeb.v4a-linux.elf-fold.lds
	new file:   stub/src/armeb.v4a-linux.elf-main2.c
	new file:   stub/src/armeb.v4a-linux.elf-so_main2.c
	modified:   stub/src/i386-linux.elf-main2.c
           plus generated *.h *.map *.dump
This commit is contained in:
John Reiser
2024-07-08 11:42:48 -07:00
parent f7cab0cf71
commit 66dc1d90d8
35 changed files with 11120 additions and 6475 deletions
+95 -37
View File
@@ -6,43 +6,101 @@ Name Origin Length Attributes
Linker script and memory map
.text 0x0000000000000000 0xf9c
.text 0x0000000000000000 0x2f8 tmp/armeb.v4a-linux.elf-fold.o
0x0000000000000004 get_page_mask
0x0000000000000298 memcpy
0x00000000000002dc mempcpy
0x0000000000000054 mmap
0x000000000000003c mmap_privanon
0x000000000000000c get_upxfn_path
0x00000000000002bc memset
0x0000000000000024 Pprotect
0x00000000fffffff4 PAGE_MASK
0x0000000000000024 mprotect
.text 0x00000000000002f8 0x3ec tmp/armeb.v4a-linux.elf-upxfd_android.o
0x0000000000000530 upx_mmap_and_fd
.text 0x00000000000006e4 0x0 tmp/armeb.v4a-expand.o
.text 0x00000000000006e4 0x8b8 tmp/armeb.v4a-linux.elf-main2.o
0x0000000000000f38 underlay
0x0000000000000e04 upx_main
SYSCALLS 0x0000000000000000 0x10c
SYSCALLS 0x0000000000000000 0x10c tmp/armeb.v4a-linux.elf-fold.o
0x000000000000005c 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
0x0000000000000008 brk
0x0000000000000064 open
0x00000000000000b0 div10
0x0000000000000054 mkdir
0x0000000000000010 close
EXP_HEAD 0x0000000000000000 0xdc
EXP_HEAD 0x0000000000000000 0xdc tmp/armeb.v4a-expand.o
0x0000000000000070 f_expand
EXP_TAIL 0x0000000000000000 0x24
EXP_TAIL 0x0000000000000000 0x24 tmp/armeb.v4a-expand.o
0x0000000000000000 eof
NRV2E 0x0000000000000000 0x114
NRV2E 0x0000000000000000 0x114 tmp/armeb.v4a-expand.o
0x0000000000000000 ucl_nrv2e_decompress_8
NRV2D 0x0000000000000000 0x100
NRV2D 0x0000000000000000 0x100 tmp/armeb.v4a-expand.o
0x0000000000000000 ucl_nrv2d_decompress_8
NRV2B 0x0000000000000000 0xc4
NRV2B 0x0000000000000000 0xc4 tmp/armeb.v4a-expand.o
0x0000000000000000 ucl_nrv2b_decompress_8
.data 0x0000000000000000 0x0
.data 0x0000000000000000 0x0 tmp/armeb.v4a-linux.elf-fold.o
.data 0x0000000000000000 0x0 tmp/armeb.v4a-linux.elf-upxfd_android.o
.data 0x0000000000000000 0x0 tmp/armeb.v4a-expand.o
.data 0x0000000000000000 0x0 tmp/armeb.v4a-linux.elf-main2.o
.bss 0x0000000000000000 0x0
.bss 0x0000000000000000 0x0 tmp/armeb.v4a-linux.elf-fold.o
.bss 0x0000000000000000 0x0 tmp/armeb.v4a-linux.elf-upxfd_android.o
.bss 0x0000000000000000 0x0 tmp/armeb.v4a-expand.o
.bss 0x0000000000000000 0x0 tmp/armeb.v4a-linux.elf-main2.o
TARGET(elf32-bigarm)
0x0000000000008080 . = ((0x8000 + SIZEOF_HEADERS) + 0xc)
.text 0x0000000000008080 0xb60
*(.text)
.text 0x0000000000008080 0x3c0 tmp/armeb.v4a-linux.elf-fold.o
0x0000000000008088 get_page_mask
0x0000000000008364 munmap
0x00000000000083c4 get_sys_munmap
0x000000000000834c getpid
0x000000000000835c readlink
0x00000000000083e4 __udivsi3
0x0000000000008384 mmap
0x00000000000083b8 __clear_cache
0x00000000000083cc mmap_privanon
0x000000000000832c write
0x0000000000008324 read
0x0000000000008344 unlink
0x0000000000008318 my_bkpt
0x000000000000836c Pprotect
0x0000000000008320 exit
0x0000000000008354 brk
0x0000000000008334 open
0x00000000000083e4 div10
0x000000000000836c mprotect
0x000000000000833c close
.text 0x0000000000008440 0x7a0 tmp/armeb.v4a-linux.elf-main.o
0x0000000000008aac upx_main
*(.data)
.data 0x0000000000008be0 0x0 tmp/armeb.v4a-linux.elf-fold.o
.data 0x0000000000008be0 0x0 tmp/armeb.v4a-linux.elf-main.o
.data
.bss 0x0000000000008be0 0x0
.bss 0x0000000000008be0 0x0 tmp/armeb.v4a-linux.elf-fold.o
.bss 0x0000000000008be0 0x0 tmp/armeb.v4a-linux.elf-main.o
0x0000000000100040 . = ((0x100000 + SIZEOF_HEADERS) + 0xc)
LOAD tmp/armeb.v4a-linux.elf-fold.o
LOAD tmp/armeb.v4a-linux.elf-main.o
LOAD tmp/armeb.v4a-linux.elf-upxfd_android.o
LOAD tmp/armeb.v4a-expand.o
LOAD tmp/armeb.v4a-linux.elf-main2.o
OUTPUT(tmp/armeb.v4a-linux.elf-fold.bin elf32-bigarm)
LZMA_ELF00 0x0000000000000000 0x90
LZMA_ELF00 0x0000000000000000 0x90 tmp/armeb.v4a-expand.o
LZMA_DEC20 0x0000000000000000 0x938
LZMA_DEC20 0x0000000000000000 0x938 tmp/armeb.v4a-expand.o
LZMA_DEC10 0x0000000000000000 0x478
LZMA_DEC10 0x0000000000000000 0x478 tmp/armeb.v4a-expand.o
0x0000000000000000 LzmaDecode
LZMA_DEC30 0x0000000000000000 0x0
LZMA_DEC30 0x0000000000000000 0x0 tmp/armeb.v4a-expand.o