check for default program load address
authorBrett Gordon <beretta42@gmail.com>
Sat, 27 May 2017 04:19:06 +0000 (00:19 -0400)
committerBrett Gordon <beretta42@gmail.com>
Sat, 27 May 2017 04:19:06 +0000 (00:19 -0400)
Kernel/syscall_exec16.c

index 71b5c8c..bdc4456 100644 (file)
@@ -137,7 +137,10 @@ arg_t _execve(void)
                udata.u_error = ENOEXEC;
                goto nogood2;
        }
+
        progload = (*(uint8_t *)(buf + 7)) << 8;
+       if ( ! progload )
+               progload = PROGLOAD;
 
        top = *(uint16_t *)(buf + 8);
        if (top == 0)   /* Legacy 'all space' binary */