projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3483913
)
load_elf: add forgotten auxv entries
author
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 7 Dec 2023 08:52:48 +0000
(
00:52
-0800)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Wed, 13 Dec 2023 00:59:12 +0000
(16:59 -0800)
src/openpower/decoder/isa/mem.py
patch
|
blob
|
history
diff --git
a/src/openpower/decoder/isa/mem.py
b/src/openpower/decoder/isa/mem.py
index 74a43ca212d93224da8b4c87706636c01ff9baad..64e5125a881e2e476faa6bd8f4eaf1a63336f8d5 100644
(file)
--- 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_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
auxv_entry(ppc_flags.AT_NULL, 0) # final auxv entry
total_sz = ((len(arg_offsets) + 1) + (len(env_offsets) + 1) + 1) * 8