summaryrefslogtreecommitdiff
path: root/sys/kern/exec_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/exec_conf.c')
-rw-r--r--sys/kern/exec_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/exec_conf.c b/sys/kern/exec_conf.c
index 4bb8a72d249..14d0db019f3 100644
--- a/sys/kern/exec_conf.c
+++ b/sys/kern/exec_conf.c
@@ -102,7 +102,7 @@ struct execsw execsw[] = {
{ ECOFF_HDR_SIZE, exec_ecoff_makecmds, }, /* ecoff binaries */
#endif
#ifdef EXEC_ELF
- { ELF_HDR_SIZE, exec_elf_makecmds, }, /* elf binaries */
+ { sizeof(Elf32_Ehdr), exec_elf_makecmds, }, /* elf binaries */
#endif
#ifdef COMPAT_LINUX
{ LINUX_AOUT_HDR_SIZE, exec_linux_aout_makecmds, }, /* linux a.out */