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-littlearm)
0x0000000000008080 . = ((0x8000 + SIZEOF_HEADERS) + 0xc)
.text 0x0000000000008080 0xb5c
.text 0x0000000000008080 0xb58
*(.text)
.text 0x0000000000008080 0x3f4 tmp/arm.v5a-linux.elf-fold.o
0x0000000000008350 munmap
0x00000000000083f8 get_sys_munmap
0x0000000000008314 getpid
0x000000000000833c readlink
0x0000000000008418 __udivsi3
0x0000000000008388 mmap
0x00000000000083d4 __clear_cache
0x0000000000008400 mmap_privanon
0x00000000000082c4 write
0x00000000000082b0 read
0x0000000000008300 unlink
0x0000000000008298 my_bkpt
0x0000000000008364 Pprotect
0x00000000000082a0 exit
0x0000000000008328 brk
0x00000000000082d8 open
0x0000000000008418 div10
0x0000000000008364 mprotect
0x00000000000082ec close
.text 0x0000000000008474 0x768 tmp/armel-linux.elf-main.o
0x0000000000008494 get_page_mask
0x0000000000008aa8 upx_main
.text 0x0000000000008080 0x3fc tmp/arm.v5a-linux.elf-fold.o
0x0000000000008358 munmap
0x0000000000008400 get_sys_munmap
0x000000000000831c getpid
0x0000000000008344 readlink
0x0000000000008420 __udivsi3
0x0000000000008390 mmap
0x00000000000083dc __clear_cache
0x0000000000008408 mmap_privanon
0x00000000000082cc write
0x00000000000082b8 read
0x0000000000008308 unlink
0x00000000000082a0 my_bkpt
0x000000000000836c Pprotect
0x00000000000082a8 exit
0x0000000000008330 brk
0x00000000000082e0 open
0x0000000000008420 div10
0x000000000000836c mprotect
0x00000000000082f4 close
.text 0x000000000000847c 0x75c tmp/armel-linux.elf-main.o
0x000000000000849c get_page_mask
0x0000000000008aa4 upx_main
*(.data)
.data 0x0000000000008bdc 0x0 tmp/arm.v5a-linux.elf-fold.o
.data 0x0000000000008bdc 0x0 tmp/armel-linux.elf-main.o
.data 0x0000000000008bd8 0x0 tmp/arm.v5a-linux.elf-fold.o
.data 0x0000000000008bd8 0x0 tmp/armel-linux.elf-main.o
.data
.bss 0x0000000000008bdc 0x0
.bss 0x0000000000008bdc 0x0 tmp/arm.v5a-linux.elf-fold.o
.bss 0x0000000000008bdc 0x0 tmp/armel-linux.elf-main.o
.bss 0x0000000000008bd8 0x0
.bss 0x0000000000008bd8 0x0 tmp/arm.v5a-linux.elf-fold.o
.bss 0x0000000000008bd8 0x0 tmp/armel-linux.elf-main.o
LOAD tmp/arm.v5a-linux.elf-fold.o
LOAD tmp/armel-linux.elf-main.o
OUTPUT(tmp/arm.v5a-linux.elf-fold.bin elf32-littlearm)