|
From: Paul F. <pa...@so...> - 2022-04-13 22:04:04
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=d6bcd3ba2906e9ed2c5240af5479fce80ec12658 commit d6bcd3ba2906e9ed2c5240af5479fce80ec12658 Author: Paul Floyd <pj...@wa...> Date: Thu Apr 14 00:01:49 2022 +0200 Some more auxv extensions for FreeBSD 14 New entries added to testcase and documented in initimg. May need more work Diff: --- coregrind/m_initimg/initimg-freebsd.c | 11 ++++++++--- none/tests/freebsd/auxv.c | 4 +++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/coregrind/m_initimg/initimg-freebsd.c b/coregrind/m_initimg/initimg-freebsd.c index 10d034eab6..bfa1907769 100644 --- a/coregrind/m_initimg/initimg-freebsd.c +++ b/coregrind/m_initimg/initimg-freebsd.c @@ -690,12 +690,17 @@ Addr setup_client_stack( void* init_sp, case AT_ARGC: // case AT_ARGV: case AT_ENVC: - // case AT_ENVV: - // case AT_PS_STRINGS: + // case AT_ENVV: + // case AT_PS_STRINGS: #endif #if (FREEBSD_VERS >= FREEBSD_14) - // case AT_FXRNG: + // I think that this is a pointer to a "fenestrasX" structture + // lots of stuff that I don't understand + // arc4random, passing through VDSO page ... + // case AT_FXRNG: + // Again a pointer, to the VDSO base for use by rtld + // case AT_KPRELOAD: #endif case AT_PHDR: diff --git a/none/tests/freebsd/auxv.c b/none/tests/freebsd/auxv.c index 689fb3d113..ce13b6e131 100644 --- a/none/tests/freebsd/auxv.c +++ b/none/tests/freebsd/auxv.c @@ -50,7 +50,9 @@ Elf_AuxStr aux_map[AT_COUNT] = { #endif #if (FREEBSD_VERS >= FREEBSD_14) {"AT_FXRNG", 33}, -// {"AT_COUNT", 34}, + {"AT_KPRELOAD", 34}, + +// {"AT_COUNT", 35}, #endif }; |