From e5bd2976f1c413e447e00767929bca574ec769df Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 7 Dec 2023 00:52:48 -0800 Subject: [PATCH] load_elf: add forgotten auxv entries --- src/openpower/decoder/isa/mem.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openpower/decoder/isa/mem.py b/src/openpower/decoder/isa/mem.py index 74a43ca2..64e5125a 100644 --- a/src/openpower/decoder/isa/mem.py +++ b/src/openpower/decoder/isa/mem.py @@ -1352,6 +1352,10 @@ def load_elf( auxv_entry(ppc_flags.AT_SECURE, bool(was_setuid_like)) auxv_entry(ppc_flags.AT_RANDOM, rand_byte16) auxv_entry(ppc_flags.AT_HWCAP2, hwcap2) + auxv_entry(ppc_flags.AT_EXECFN, program_name) + auxv_entry(ppc_flags.AT_PLATFORM, platform) + auxv_entry(ppc_flags.AT_BASE_PLATFORM, base_platform) + auxv_entry(ppc_flags.AT_EXECFD, execfd) auxv_entry(ppc_flags.AT_NULL, 0) # final auxv entry total_sz = ((len(arg_offsets) + 1) + (len(env_offsets) + 1) + 1) * 8 -- 2.30.2