arm32, arm64 ABI for -static must preserve register 0

Also arm32 forgot to unmap the expanded de-compressor via the escape hatch.

https://github.com/upx/upx/issues/758
https://github.com/upx/upx/issues/768
	modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
	modified:   stub/src/arm.v4a-linux.elf-entry.S
	modified:   stub/src/arm.v4a-linux.elf-fold.S
	modified:   stub/src/arm64-linux.elf-entry.S
	modified:   stub/src/arm64-linux.elf-fold.S
	modified:   stub/src/i386-linux.elf-main.c
	modified:   stub/src/amd64-linux.elf-main.c
          plus associated *.h *.map *.dump
This commit is contained in:
John Reiser
2024-01-12 15:39:18 -08:00
committed by Markus F.X.J. Oberhumer
parent 2ad0d51226
commit 38ed4b2017
23 changed files with 4257 additions and 4248 deletions
+26 -26
View File
@@ -8,34 +8,34 @@ Linker script and memory map
0x0000000000008040 . = ((0x8000 + SIZEOF_HEADERS) + 0xc)
.text 0x0000000000008040 0xab0
.text 0x0000000000008040 0xaac
*(.text)
.text 0x0000000000008040 0x340 tmp/arm.v4a-linux.elf-fold.o
0x0000000000008258 my_bkpt
0x0000000000008260 exit
0x0000000000008264 read
0x000000000000826c write
0x0000000000008274 open
0x000000000000827c close
0x0000000000008284 unlink
0x000000000000828c getpid
0x0000000000008294 brk
0x000000000000829c readlink
0x00000000000082a4 munmap
0x00000000000082ac Pprotect
0x00000000000082ac mprotect
0x00000000000082c4 mmap
0x00000000000082f8 __clear_cache
0x0000000000008304 get_sys_munmap
0x000000000000830c mmap_privanon
0x0000000000008324 __udivsi3
0x0000000000008324 div10
.text 0x0000000000008380 0x770 tmp/arm.v4a-linux.elf-main.o
0x00000000000083a0 get_page_mask
0x00000000000089bc upx_main
.text 0x0000000000008040 0x348 tmp/arm.v4a-linux.elf-fold.o
0x0000000000008260 my_bkpt
0x0000000000008268 exit
0x000000000000826c read
0x0000000000008274 write
0x000000000000827c open
0x0000000000008284 close
0x000000000000828c unlink
0x0000000000008294 getpid
0x000000000000829c brk
0x00000000000082a4 readlink
0x00000000000082ac munmap
0x00000000000082b4 Pprotect
0x00000000000082b4 mprotect
0x00000000000082cc mmap
0x0000000000008300 __clear_cache
0x000000000000830c get_sys_munmap
0x0000000000008314 mmap_privanon
0x000000000000832c __udivsi3
0x000000000000832c div10
.text 0x0000000000008388 0x764 tmp/arm.v4a-linux.elf-main.o
0x00000000000083a8 get_page_mask
0x00000000000089b8 upx_main
*(.data)
.data 0x0000000000008af0 0x0 tmp/arm.v4a-linux.elf-fold.o
.data 0x0000000000008af0 0x0 tmp/arm.v4a-linux.elf-main.o
.data 0x0000000000008aec 0x0 tmp/arm.v4a-linux.elf-fold.o
.data 0x0000000000008aec 0x0 tmp/arm.v4a-linux.elf-main.o
.data
LOAD tmp/arm.v4a-linux.elf-fold.o