changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: kernel: exec support for arm64 binaries

changeset 7200: 4b67ffcd2c61
parent 7199: ba62683c0e2d
child 7201: b73a652b1030
author: cinap_lenrek@felloff.net
date: Fri, 03 May 2019 23:15:42 +0200
files: sys/src/9/port/sysproc.c
description: kernel: exec support for arm64 binaries
     1.1--- a/sys/src/9/port/sysproc.c
     1.2+++ b/sys/src/9/port/sysproc.c
     1.3@@ -328,6 +328,9 @@ sysexec(va_list list)
     1.4 			case V_MAGIC:	/* 16K segment alignment for mips */
     1.5 				align = 0x4000;
     1.6 				break;
     1.7+			case R_MAGIC:	/* 64K segment alignment for arm64 */
     1.8+				align = 0x10000;
     1.9+				break;
    1.10 			}
    1.11 			if(text >= (USTKTOP-USTKSIZE)-(UTZERO+sizeof(Exec))
    1.12 			|| entry < UTZERO+sizeof(Exec)