Fix auxv_up() to avoid SIGSEGV under valgrind

https://github.com/upx/upx/issues/784
	modified:   stub/src/amd64-linux.elf-main.c
	modified:   stub/src/i386-linux.elf-main.c
	modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
           plus all generated stub/*-linux.elf-fold.{h,map}
This commit is contained in:
John Reiser
2024-02-03 13:58:53 -08:00
committed by Markus F.X.J. Oberhumer
parent 718ec468ff
commit 41f6945be1
26 changed files with 1984 additions and 1929 deletions
+30 -30
View File
@@ -9,7 +9,7 @@ Linker script and memory map
TARGET(elf64-powerpc)
0x00000000001000bc . = ((0x100000 + SIZEOF_HEADERS) + 0xc)
.text 0x00000000001000bc 0xc08
.text 0x00000000001000bc 0xc40
*(.text)
.text 0x00000000001000bc 0x348 tmp/powerpc64-linux.elf-fold.o
0x00000000001000bc get_page_mask
@@ -24,47 +24,47 @@ TARGET(elf64-powerpc)
0x00000000001003ec close
0x00000000001003f4 munmap
0x00000000001003fc my_bkpt
.text 0x0000000000100404 0x8c0 tmp/powerpc64-linux.elf-main.o
.text 0x0000000000100404 0x8f8 tmp/powerpc64-linux.elf-main.o
*(.data)
.data 0x0000000000100cc4 0x0 tmp/powerpc64-linux.elf-fold.o
.data 0x0000000000100cc4 0x0 tmp/powerpc64-linux.elf-main.o
.data 0x0000000000100cfc 0x0 tmp/powerpc64-linux.elf-fold.o
.data 0x0000000000100cfc 0x0 tmp/powerpc64-linux.elf-main.o
.sfpr 0x0000000000100cc4 0xa4
.sfpr 0x0000000000100cc4 0xa4 linker stubs
0x0000000000100cc4 _savegpr0_14
0x0000000000100cec _savegpr0_24
0x0000000000100cfc _savegpr0_28
0x0000000000100d14 _restgpr0_14
0x0000000000100d3c _restgpr0_24
0x0000000000100d4c _restgpr0_28
.sfpr 0x0000000000100cfc 0xa4
.sfpr 0x0000000000100cfc 0xa4 linker stubs
0x0000000000100cfc _savegpr0_14
0x0000000000100d24 _savegpr0_24
0x0000000000100d34 _savegpr0_28
0x0000000000100d4c _restgpr0_14
0x0000000000100d74 _restgpr0_24
0x0000000000100d84 _restgpr0_28
.glink 0x0000000000100d68 0x0
.glink 0x0000000000100d68 0x0 linker stubs
.glink 0x0000000000100da0 0x0
.glink 0x0000000000100da0 0x0 linker stubs
.eh_frame 0x0000000000100d68 0x0
.eh_frame 0x0000000000100d68 0x0 linker stubs
.eh_frame 0x0000000000100da0 0x0
.eh_frame 0x0000000000100da0 0x0 linker stubs
.rela.dyn 0x0000000000100d68 0x0
.rela.iplt 0x0000000000100d68 0x0 linker stubs
.rela.dyn 0x0000000000100da0 0x0
.rela.iplt 0x0000000000100da0 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 0x0000000000100d68 0x0
.branch_lt 0x0000000000100d68 0x0 linker stubs
.branch_lt 0x0000000000100da0 0x0
.branch_lt 0x0000000000100da0 0x0 linker stubs
.toc 0x0000000000100d68 0x0
.toc 0x0000000000100d68 0x0 tmp/powerpc64-linux.elf-main.o
.toc 0x0000000000100da0 0x0
.toc 0x0000000000100da0 0x0 tmp/powerpc64-linux.elf-main.o
.opd 0x0000000000100d68 0x58
.opd 0x0000000000100d68 0x58 tmp/powerpc64-linux.elf-main.o
0x0000000000100da8 upx_main
.opd 0x0000000000100da0 0x58
.opd 0x0000000000100da0 0x58 tmp/powerpc64-linux.elf-main.o
0x0000000000100de0 upx_main
.iplt 0x0000000000100dc0 0x0
.iplt 0x0000000000100dc0 0x0 linker stubs
.iplt 0x0000000000100df8 0x0
.iplt 0x0000000000100df8 0x0 linker stubs
.bss 0x0000000000100dc0 0x0
.bss 0x0000000000100dc0 0x0 tmp/powerpc64-linux.elf-fold.o
.bss 0x0000000000100dc0 0x0 tmp/powerpc64-linux.elf-main.o
.bss 0x0000000000100df8 0x0
.bss 0x0000000000100df8 0x0 tmp/powerpc64-linux.elf-fold.o
.bss 0x0000000000100df8 0x0 tmp/powerpc64-linux.elf-main.o