From: Jacob Lifshay Date: Thu, 7 Dec 2023 08:52:48 +0000 (-0800) Subject: load_elf: add forgotten auxv entries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5bd2976f1c413e447e00767929bca574ec769df;p=openpower-isa.git load_elf: add forgotten auxv entries --- 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