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
+34 -34
View File
@@ -8,7 +8,7 @@ Linker script and memory map
0x00000000001000bc . = ((0x100000 + SIZEOF_HEADERS) + 0xc)
.text 0x00000000001000bc 0x8b8
.text 0x00000000001000bc 0x8d0
*(.text)
.text 0x00000000001000bc 0x1b9 tmp/amd64-linux.elf-fold.o
0x0000000000100263 munmap
@@ -23,48 +23,48 @@ Linker script and memory map
0x0000000000100267 mprotect
0x000000000010025b close
*fill* 0x0000000000100275 0x3 00
.text 0x0000000000100278 0x6fa tmp/amd64-linux.elf-main.o
0x000000000010082a upx_main
*fill* 0x0000000000100972 0x2 00
.text 0x0000000000100974 0x0 tmp/amd64-expand.o
.text 0x0000000000100278 0x713 tmp/amd64-linux.elf-main.o
0x0000000000100844 upx_main
*fill* 0x000000000010098b 0x1 00
.text 0x000000000010098c 0x0 tmp/amd64-expand.o
*(.data)
.data 0x0000000000100974 0x0 tmp/amd64-linux.elf-fold.o
.data 0x0000000000100974 0x0 tmp/amd64-linux.elf-main.o
.data 0x0000000000100974 0x0 tmp/amd64-expand.o
0x0000000000100974 . = ALIGN (0x1)
0x0000000000100974 __start_EXP_HEAD = .
.data 0x000000000010098c 0x0 tmp/amd64-linux.elf-fold.o
.data 0x000000000010098c 0x0 tmp/amd64-linux.elf-main.o
.data 0x000000000010098c 0x0 tmp/amd64-expand.o
0x000000000010098c . = ALIGN (0x1)
0x000000000010098c __start_EXP_HEAD = .
EXP_HEAD 0x0000000000100974 0xe0
EXP_HEAD 0x0000000000100974 0xe0 tmp/amd64-expand.o
0x0000000000100974 f_expand
0x0000000000100a54 __stop_EXP_HEAD = .
0x0000000000100a54 . = ALIGN (0x1)
0x0000000000100a54 __start_NRV2E = .
EXP_HEAD 0x000000000010098c 0xe0
EXP_HEAD 0x000000000010098c 0xe0 tmp/amd64-expand.o
0x000000000010098c f_expand
0x0000000000100a6c __stop_EXP_HEAD = .
0x0000000000100a6c . = ALIGN (0x1)
0x0000000000100a6c __start_NRV2E = .
NRV2E 0x0000000000100a54 0xe5
NRV2E 0x0000000000100a54 0xe5 tmp/amd64-expand.o
0x0000000000100b39 __stop_NRV2E = .
0x0000000000100b39 . = ALIGN (0x1)
0x0000000000100b39 __start_NRV2D = .
NRV2E 0x0000000000100a6c 0xe5
NRV2E 0x0000000000100a6c 0xe5 tmp/amd64-expand.o
0x0000000000100b51 __stop_NRV2E = .
0x0000000000100b51 . = ALIGN (0x1)
0x0000000000100b51 __start_NRV2D = .
NRV2D 0x0000000000100b39 0xd7
NRV2D 0x0000000000100b39 0xd7 tmp/amd64-expand.o
0x0000000000100c10 __stop_NRV2D = .
0x0000000000100c10 . = ALIGN (0x1)
0x0000000000100c10 __start_NRV2B = .
NRV2D 0x0000000000100b51 0xd7
NRV2D 0x0000000000100b51 0xd7 tmp/amd64-expand.o
0x0000000000100c28 __stop_NRV2D = .
0x0000000000100c28 . = ALIGN (0x1)
0x0000000000100c28 __start_NRV2B = .
NRV2B 0x0000000000100c10 0xc1
NRV2B 0x0000000000100c10 0xc1 tmp/amd64-expand.o
0x0000000000100cd1 __stop_NRV2B = .
NRV2B 0x0000000000100c28 0xc1
NRV2B 0x0000000000100c28 0xc1 tmp/amd64-expand.o
0x0000000000100ce9 __stop_NRV2B = .
.data
.bss 0x0000000000100cd4 0x0
.bss 0x0000000000100cd4 0x0 tmp/amd64-linux.elf-fold.o
.bss 0x0000000000100cd4 0x0 tmp/amd64-linux.elf-main.o
.bss 0x0000000000100cd4 0x0 tmp/amd64-expand.o
.bss 0x0000000000100cec 0x0
.bss 0x0000000000100cec 0x0 tmp/amd64-linux.elf-fold.o
.bss 0x0000000000100cec 0x0 tmp/amd64-linux.elf-main.o
.bss 0x0000000000100cec 0x0 tmp/amd64-expand.o
.rela.dyn 0x0000000000100cd8 0x0
.rela.dyn 0x0000000000100cf0 0x0
.rela.text 0x0000000000000000 0x0 tmp/amd64-linux.elf-fold.o
LOAD tmp/amd64-linux.elf-fold.o
LOAD tmp/amd64-linux.elf-main.o