From: Paul Floyd Date: Wed, 13 Apr 2022 22:01:49 +0000 (+0200) Subject: Some more auxv extensions for FreeBSD 14 X-Git-Tag: VALGRIND_3_20_0~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6bcd3ba2906e9ed2c5240af5479fce80ec12658;p=thirdparty%2Fvalgrind.git Some more auxv extensions for FreeBSD 14 New entries added to testcase and documented in initimg. May need more work --- 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 };