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:
committed by
Markus F.X.J. Oberhumer
parent
2ad0d51226
commit
38ed4b2017
+27
-27
@@ -8,46 +8,46 @@ Linker script and memory map
|
||||
|
||||
0x00000000001000bc . = ((0x100000 + SIZEOF_HEADERS) + 0xc)
|
||||
|
||||
.text 0x00000000001000bc 0xa68
|
||||
.text 0x00000000001000bc 0xa78
|
||||
*(.text)
|
||||
.text 0x00000000001000bc 0x2b0 tmp/arm64-linux.elf-fold.o
|
||||
.text 0x00000000001000bc 0x2c0 tmp/arm64-linux.elf-fold.o
|
||||
0x00000000001000c4 get_page_mask
|
||||
0x00000000001000d4 mmap_privanon
|
||||
0x00000000001000e4 mmap
|
||||
0x0000000000100100 Pprotect
|
||||
0x0000000000100100 mprotect
|
||||
0x00000000001002c8 my_bkpt
|
||||
0x00000000001002d0 exit
|
||||
0x00000000001002d8 read
|
||||
0x00000000001002e4 write
|
||||
0x00000000001002f0 close
|
||||
0x00000000001002fc getpid
|
||||
0x0000000000100308 brk
|
||||
0x0000000000100314 munmap
|
||||
0x0000000000100320 unlink
|
||||
0x0000000000100334 readlink
|
||||
0x000000000010033c open
|
||||
0x0000000000100358 __clear_cache
|
||||
.text 0x000000000010036c 0x7b8 tmp/arm64-linux.elf-main.o
|
||||
0x00000000001009bc upx_main
|
||||
0x00000000001002d8 my_bkpt
|
||||
0x00000000001002e0 exit
|
||||
0x00000000001002e8 read
|
||||
0x00000000001002f4 write
|
||||
0x0000000000100300 close
|
||||
0x000000000010030c getpid
|
||||
0x0000000000100318 brk
|
||||
0x0000000000100324 munmap
|
||||
0x0000000000100330 unlink
|
||||
0x0000000000100344 readlink
|
||||
0x000000000010034c open
|
||||
0x0000000000100368 __clear_cache
|
||||
.text 0x000000000010037c 0x7b8 tmp/arm64-linux.elf-main.o
|
||||
0x00000000001009cc upx_main
|
||||
*(.data)
|
||||
.data 0x0000000000100b24 0x0 tmp/arm64-linux.elf-fold.o
|
||||
.data 0x0000000000100b24 0x0 tmp/arm64-linux.elf-main.o
|
||||
.data 0x0000000000100b34 0x0 tmp/arm64-linux.elf-fold.o
|
||||
.data 0x0000000000100b34 0x0 tmp/arm64-linux.elf-main.o
|
||||
|
||||
.iplt 0x0000000000100b24 0x0
|
||||
.iplt 0x0000000000100b24 0x0 tmp/arm64-linux.elf-fold.o
|
||||
.iplt 0x0000000000100b34 0x0
|
||||
.iplt 0x0000000000100b34 0x0 tmp/arm64-linux.elf-fold.o
|
||||
|
||||
.rela.dyn 0x0000000000100b28 0x0
|
||||
.rela.iplt 0x0000000000100b28 0x0 tmp/arm64-linux.elf-fold.o
|
||||
.rela.dyn 0x0000000000100b38 0x0
|
||||
.rela.iplt 0x0000000000100b38 0x0 tmp/arm64-linux.elf-fold.o
|
||||
|
||||
.data
|
||||
LOAD tmp/arm64-linux.elf-fold.o
|
||||
LOAD tmp/arm64-linux.elf-main.o
|
||||
OUTPUT(tmp/arm64-linux.elf-fold.bin elf64-littleaarch64)
|
||||
|
||||
.igot.plt 0x0000000000100b28 0x0
|
||||
.igot.plt 0x0000000000100b28 0x0 tmp/arm64-linux.elf-fold.o
|
||||
.igot.plt 0x0000000000100b38 0x0
|
||||
.igot.plt 0x0000000000100b38 0x0 tmp/arm64-linux.elf-fold.o
|
||||
|
||||
.bss 0x0000000000100b24 0x0
|
||||
.bss 0x0000000000100b24 0x0 tmp/arm64-linux.elf-fold.o
|
||||
.bss 0x0000000000100b24 0x0 tmp/arm64-linux.elf-main.o
|
||||
.bss 0x0000000000100b34 0x0
|
||||
.bss 0x0000000000100b34 0x0 tmp/arm64-linux.elf-fold.o
|
||||
.bss 0x0000000000100b34 0x0 tmp/arm64-linux.elf-main.o
|
||||
|
||||
Reference in New Issue
Block a user