From 9039c6d367f78280930f66a90fc17d9d4e7cc6c3 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