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
+29 -29
View File
@@ -9,40 +9,40 @@ Linker script and memory map
TARGET(elf32-bigarm)
0x0000000000008080 . = ((0x8000 + SIZEOF_HEADERS) + 0xc)
.text 0x0000000000008080 0xab0
.text 0x0000000000008080 0xaac
*(.text)
.text 0x0000000000008080 0x340 tmp/armeb.v4a-linux.elf-fold.o
0x00000000000082e4 munmap
0x0000000000008344 get_sys_munmap
0x00000000000082cc getpid
0x00000000000082dc readlink
0x0000000000008364 __udivsi3
0x0000000000008304 mmap
0x0000000000008338 __clear_cache
0x000000000000834c mmap_privanon
0x00000000000082ac write
0x00000000000082a4 read
0x00000000000082c4 unlink
0x0000000000008298 my_bkpt
0x00000000000082ec Pprotect
0x00000000000082a0 exit
0x00000000000082d4 brk
0x00000000000082b4 open
0x0000000000008364 div10
0x00000000000082ec mprotect
0x00000000000082bc close
.text 0x00000000000083c0 0x770 tmp/armeb.v4a-linux.elf-main.o
0x00000000000083e0 get_page_mask
0x00000000000089fc upx_main
.text 0x0000000000008080 0x348 tmp/armeb.v4a-linux.elf-fold.o
0x00000000000082ec munmap
0x000000000000834c get_sys_munmap
0x00000000000082d4 getpid
0x00000000000082e4 readlink
0x000000000000836c __udivsi3
0x000000000000830c mmap
0x0000000000008340 __clear_cache
0x0000000000008354 mmap_privanon
0x00000000000082b4 write
0x00000000000082ac read
0x00000000000082cc unlink
0x00000000000082a0 my_bkpt
0x00000000000082f4 Pprotect
0x00000000000082a8 exit
0x00000000000082dc brk
0x00000000000082bc open
0x000000000000836c div10
0x00000000000082f4 mprotect
0x00000000000082c4 close
.text 0x00000000000083c8 0x764 tmp/armeb.v4a-linux.elf-main.o
0x00000000000083e8 get_page_mask
0x00000000000089f8 upx_main
*(.data)
.data 0x0000000000008b30 0x0 tmp/armeb.v4a-linux.elf-fold.o
.data 0x0000000000008b30 0x0 tmp/armeb.v4a-linux.elf-main.o
.data 0x0000000000008b2c 0x0 tmp/armeb.v4a-linux.elf-fold.o
.data 0x0000000000008b2c 0x0 tmp/armeb.v4a-linux.elf-main.o
.data
.bss 0x0000000000008b30 0x0
.bss 0x0000000000008b30 0x0 tmp/armeb.v4a-linux.elf-fold.o
.bss 0x0000000000008b30 0x0 tmp/armeb.v4a-linux.elf-main.o
.bss 0x0000000000008b2c 0x0
.bss 0x0000000000008b2c 0x0 tmp/armeb.v4a-linux.elf-fold.o
.bss 0x0000000000008b2c 0x0 tmp/armeb.v4a-linux.elf-main.o
LOAD tmp/armeb.v4a-linux.elf-fold.o
LOAD tmp/armeb.v4a-linux.elf-main.o
OUTPUT(tmp/armeb.v4a-linux.elf-fold.bin elf32-bigarm)