--- Gnu-Mach/kern/elf-load.c 2020/09/02 04:36:57 1.1.1.1 +++ Gnu-Mach/kern/elf-load.c 2020/09/02 04:47:42 1.1.1.2 @@ -80,6 +80,8 @@ int exec_load(exec_read_func_t *read, ex result = (*read_exec)(handle, ph->p_offset, ph->p_filesz, ph->p_vaddr, ph->p_memsz, type); + if (result) + return result; } }