summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/exec/elf/elf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/uts/common/exec/elf/elf.c b/usr/src/uts/common/exec/elf/elf.c
index 771a4f8761..84b6aac489 100644
--- a/usr/src/uts/common/exec/elf/elf.c
+++ b/usr/src/uts/common/exec/elf/elf.c
@@ -2026,6 +2026,7 @@ top:
* extended formats and put the real values in the section header
* as index 0.
*/
+ ehdr->e_ident[EI_VERSION] = EV_CURRENT;
ehdr->e_version = EV_CURRENT;
ehdr->e_ehsize = sizeof (Ehdr);