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=18cc74c8a3780985826834b24a8e7e94f3e7612e;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