ref: 0b5e782882152dae80fbcc6b54e187b1926e93ec
parent: c6ad540af56be95b458008ae3abd3432b71d49dd
author: cinap_lenrek <[email protected]>
date: Fri May 3 19:15:42 EDT 2019
kernel: exec support for arm64 binaries
--- a/sys/src/9/port/sysproc.c
+++ b/sys/src/9/port/sysproc.c
@@ -328,6 +328,9 @@
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)