Linux EINVAL for zero-length mmap: mmap(, 0, ,,,)

https://github.com/upx/upx/issues/681
	modified:   stub/src/amd64-linux.elf-main.c
	modified:   stub/src/i386-linux.elf-main.c

	modified:   stub/src/i386-bsd.elf-main.c
	modified:   stub/src/i386-openbsd.elf-main.c

	modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh

	modified:   stub/amd64-linux.elf-fold.h
	modified:   stub/arm64-linux.elf-fold.h
	modified:   stub/i386-bsd.elf-fold.h
	modified:   stub/i386-linux.elf-fold.h
	modified:   stub/i386-netbsd.elf-fold.h
	modified:   stub/i386-openbsd.elf-fold.h
	modified:   stub/mips.r3000-linux.elf-fold.h
	modified:   stub/mipsel.r3000-linux.elf-fold.h
	modified:   stub/powerpc-linux.elf-fold.h
	modified:   stub/powerpc64-linux.elf-fold.h
	modified:   stub/powerpc64le-linux.elf-fold.h
	modified:   stub/tmp/amd64-linux.elf-fold.map
	modified:   stub/tmp/arm64-linux.elf-fold.map
	modified:   stub/tmp/i386-bsd.elf-fold.map
	modified:   stub/tmp/i386-linux.elf-fold.map
	modified:   stub/tmp/i386-netbsd.elf-fold.map
	modified:   stub/tmp/i386-openbsd.elf-fold.map
	modified:   stub/tmp/mips.r3000-linux.elf-fold.map
	modified:   stub/tmp/mipsel.r3000-linux.elf-fold.map
	modified:   stub/tmp/powerpc-linux.elf-fold.map
	modified:   stub/tmp/powerpc64-linux.elf-fold.map
	modified:   stub/tmp/powerpc64le-linux.elf-fold.map
This commit is contained in:
John Reiser
2023-07-05 13:44:24 -07:00
committed by Markus F.X.J. Oberhumer
parent c429859cbf
commit 12c36bab6c
27 changed files with 1330 additions and 1330 deletions
+30 -30
View File
@@ -9,7 +9,7 @@ Linker script and memory map
TARGET(elf64-powerpc)
0x00000000001000bc . = ((0x100000 + SIZEOF_HEADERS) + 0xc)
.text 0x00000000001000bc 0xbdc
.text 0x00000000001000bc 0xbe8
*(.text)
.text 0x00000000001000bc 0x338 tmp/powerpc64-linux.elf-fold.o
0x00000000001000bc get_page_mask
@@ -24,47 +24,47 @@ TARGET(elf64-powerpc)
0x00000000001003dc close
0x00000000001003e4 munmap
0x00000000001003ec my_bkpt
.text 0x00000000001003f4 0x8a4 tmp/powerpc64-linux.elf-main.o
.text 0x00000000001003f4 0x8b0 tmp/powerpc64-linux.elf-main.o
*(.data)
.data 0x0000000000100c98 0x0 tmp/powerpc64-linux.elf-fold.o
.data 0x0000000000100c98 0x0 tmp/powerpc64-linux.elf-main.o
.data 0x0000000000100ca4 0x0 tmp/powerpc64-linux.elf-fold.o
.data 0x0000000000100ca4 0x0 tmp/powerpc64-linux.elf-main.o
.sfpr 0x0000000000100c98 0xa4
.sfpr 0x0000000000100c98 0xa4 linker stubs
0x0000000000100c98 _savegpr0_14
0x0000000000100cc0 _savegpr0_24
0x0000000000100cd0 _savegpr0_28
0x0000000000100ce8 _restgpr0_14
0x0000000000100d10 _restgpr0_24
0x0000000000100d20 _restgpr0_28
.sfpr 0x0000000000100ca4 0xa4
.sfpr 0x0000000000100ca4 0xa4 linker stubs
0x0000000000100ca4 _savegpr0_14
0x0000000000100ccc _savegpr0_24
0x0000000000100cdc _savegpr0_28
0x0000000000100cf4 _restgpr0_14
0x0000000000100d1c _restgpr0_24
0x0000000000100d2c _restgpr0_28
.glink 0x0000000000100d40 0x0
.glink 0x0000000000100d40 0x0 linker stubs
.glink 0x0000000000100d48 0x0
.glink 0x0000000000100d48 0x0 linker stubs
.eh_frame 0x0000000000100d3c 0x0
.eh_frame 0x0000000000100d3c 0x0 linker stubs
.eh_frame 0x0000000000100d48 0x0
.eh_frame 0x0000000000100d48 0x0 linker stubs
.rela.dyn 0x0000000000100d40 0x0
.rela.iplt 0x0000000000100d40 0x0 linker stubs
.rela.dyn 0x0000000000100d48 0x0
.rela.iplt 0x0000000000100d48 0x0 linker stubs
.data
LOAD tmp/powerpc64-linux.elf-fold.o
LOAD tmp/powerpc64-linux.elf-main.o
OUTPUT(tmp/powerpc64-linux.elf-fold.bin elf64-powerpc)
.branch_lt 0x0000000000100d40 0x0
.branch_lt 0x0000000000100d40 0x0 linker stubs
.branch_lt 0x0000000000100d48 0x0
.branch_lt 0x0000000000100d48 0x0 linker stubs
.toc 0x0000000000100d40 0x0
.toc 0x0000000000100d40 0x0 tmp/powerpc64-linux.elf-main.o
.toc 0x0000000000100d48 0x0
.toc 0x0000000000100d48 0x0 tmp/powerpc64-linux.elf-main.o
.opd 0x0000000000100d40 0x58
.opd 0x0000000000100d40 0x58 tmp/powerpc64-linux.elf-main.o
0x0000000000100d80 upx_main
.opd 0x0000000000100d48 0x58
.opd 0x0000000000100d48 0x58 tmp/powerpc64-linux.elf-main.o
0x0000000000100d88 upx_main
.iplt 0x0000000000100d98 0x0
.iplt 0x0000000000100d98 0x0 linker stubs
.iplt 0x0000000000100da0 0x0
.iplt 0x0000000000100da0 0x0 linker stubs
.bss 0x0000000000100d98 0x0
.bss 0x0000000000100d98 0x0 tmp/powerpc64-linux.elf-fold.o
.bss 0x0000000000100d98 0x0 tmp/powerpc64-linux.elf-main.o
.bss 0x0000000000100da0 0x0
.bss 0x0000000000100da0 0x0 tmp/powerpc64-linux.elf-fold.o
.bss 0x0000000000100da0 0x0 tmp/powerpc64-linux.elf-main.o