kernel: exec support for arm64 binaries

This commit is contained in:
cinap_lenrek 2019-05-03 23:15:42 +02:00
parent c6ad540af5
commit 0b5e782882

View file

@ -328,6 +328,9 @@ sysexec(va_list list)
case V_MAGIC: /* 16K segment alignment for mips */
align = 0x4000;
break;
case R_MAGIC: /* 64K segment alignment for arm64 */
align = 0x10000;
break;
}
if(text >= (USTKTOP-USTKSIZE)-(UTZERO+sizeof(Exec))
|| entry < UTZERO+sizeof(Exec)