diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-03 23:15:42 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-03 23:15:42 +0200 |
commit | 0b5e782882152dae80fbcc6b54e187b1926e93ec (patch) | |
tree | 2bbc441ee811b41f6ed8f32d35875b2f19d24067 /sys/src/9/port/sysproc.c | |
parent | c6ad540af56be95b458008ae3abd3432b71d49dd (diff) |
kernel: exec support for arm64 binaries
Diffstat (limited to 'sys/src/9/port/sysproc.c')
-rw-r--r-- | sys/src/9/port/sysproc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/9/port/sysproc.c b/sys/src/9/port/sysproc.c index 705dbf415..56dc793d6 100644 --- a/sys/src/9/port/sysproc.c +++ b/sys/src/9/port/sysproc.c @@ -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) |