1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1994-1996 Søren Schmidt 5 * Copyright (c) 2018 Turing Robotic Industries Inc. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29 #include <sys/cdefs.h> 30 __FBSDID("$FreeBSD$"); 31 32 #include <sys/param.h> 33 #include <sys/systm.h> 34 #include <sys/cdefs.h> 35 #include <sys/elf.h> 36 #include <sys/exec.h> 37 #include <sys/imgact.h> 38 #include <sys/imgact_elf.h> 39 #include <sys/kernel.h> 40 #include <sys/lock.h> 41 #include <sys/module.h> 42 #include <sys/mutex.h> 43 #include <sys/proc.h> 44 #include <sys/signalvar.h> 45 #include <sys/sysctl.h> 46 #include <sys/sysent.h> 47 48 #include <vm/vm_param.h> 49 50 #include <arm64/linux/linux.h> 51 #include <arm64/linux/linux_proto.h> 52 #include <compat/linux/linux_dtrace.h> 53 #include <compat/linux/linux_emul.h> 54 #include <compat/linux/linux_ioctl.h> 55 #include <compat/linux/linux_mib.h> 56 #include <compat/linux/linux_misc.h> 57 #include <compat/linux/linux_util.h> 58 #include <compat/linux/linux_vdso.h> 59 60 #ifdef VFP 61 #include <machine/vfp.h> 62 #endif 63 64 MODULE_VERSION(linux64elf, 1); 65 66 const char *linux_kplatform; 67 static int linux_szsigcode; 68 static vm_object_t linux_shared_page_obj; 69 static char *linux_shared_page_mapping; 70 extern char _binary_linux_locore_o_start; 71 extern char _binary_linux_locore_o_end; 72 73 extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL]; 74 75 SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler); 76 77 static int linux_copyout_strings(struct image_params *imgp, 78 uintptr_t *stack_base); 79 static int linux_elf_fixup(uintptr_t *stack_base, 80 struct image_params *iparams); 81 static bool linux_trans_osrel(const Elf_Note *note, int32_t *osrel); 82 static void linux_vdso_install(const void *param); 83 static void linux_vdso_deinstall(const void *param); 84 static void linux_set_syscall_retval(struct thread *td, int error); 85 static int linux_fetch_syscall_args(struct thread *td); 86 static void linux_exec_setregs(struct thread *td, struct image_params *imgp, 87 uintptr_t stack); 88 static int linux_vsyscall(struct thread *td); 89 90 /* DTrace init */ 91 LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE); 92 93 /* DTrace probes */ 94 LIN_SDT_PROBE_DEFINE2(sysvec, linux_translate_traps, todo, "int", "int"); 95 LIN_SDT_PROBE_DEFINE0(sysvec, linux_exec_setregs, todo); 96 LIN_SDT_PROBE_DEFINE0(sysvec, linux_copyout_auxargs, todo); 97 LIN_SDT_PROBE_DEFINE0(sysvec, linux_elf_fixup, todo); 98 LIN_SDT_PROBE_DEFINE0(sysvec, linux_rt_sigreturn, todo); 99 LIN_SDT_PROBE_DEFINE0(sysvec, linux_rt_sendsig, todo); 100 LIN_SDT_PROBE_DEFINE0(sysvec, linux_vsyscall, todo); 101 LIN_SDT_PROBE_DEFINE0(sysvec, linux_vdso_install, todo); 102 LIN_SDT_PROBE_DEFINE0(sysvec, linux_vdso_deinstall, todo); 103 104 /* LINUXTODO: do we have traps to translate? */ 105 static int 106 linux_translate_traps(int signal, int trap_code) 107 { 108 109 LIN_SDT_PROBE2(sysvec, linux_translate_traps, todo, signal, trap_code); 110 return (signal); 111 } 112 113 LINUX_VDSO_SYM_CHAR(linux_platform); 114 115 static int 116 linux_fetch_syscall_args(struct thread *td) 117 { 118 struct proc *p; 119 struct syscall_args *sa; 120 register_t *ap; 121 122 p = td->td_proc; 123 ap = td->td_frame->tf_x; 124 sa = &td->td_sa; 125 126 sa->code = td->td_frame->tf_x[8]; 127 /* LINUXTODO: generic syscall? */ 128 if (sa->code >= p->p_sysent->sv_size) 129 sa->callp = &p->p_sysent->sv_table[0]; 130 else 131 sa->callp = &p->p_sysent->sv_table[sa->code]; 132 133 if (sa->callp->sy_narg > MAXARGS) 134 panic("ARM64TODO: Could we have more than %d args?", MAXARGS); 135 memcpy(sa->args, ap, MAXARGS * sizeof(register_t)); 136 137 td->td_retval[0] = 0; 138 return (0); 139 } 140 141 static void 142 linux_set_syscall_retval(struct thread *td, int error) 143 { 144 145 td->td_retval[1] = td->td_frame->tf_x[1]; 146 cpu_set_syscall_retval(td, error); 147 148 if (__predict_false(error != 0)) { 149 if (error != ERESTART && error != EJUSTRETURN) 150 td->td_frame->tf_x[0] = bsd_to_linux_errno(error); 151 } 152 } 153 154 static int 155 linux_copyout_auxargs(struct image_params *imgp, uintptr_t base) 156 { 157 Elf_Auxargs *args; 158 Elf_Auxinfo *argarray, *pos; 159 struct proc *p; 160 int error, issetugid; 161 162 LIN_SDT_PROBE0(sysvec, linux_copyout_auxargs, todo); 163 p = imgp->proc; 164 165 args = (Elf64_Auxargs *)imgp->auxargs; 166 argarray = pos = malloc(LINUX_AT_COUNT * sizeof(*pos), M_TEMP, 167 M_WAITOK | M_ZERO); 168 169 issetugid = p->p_flag & P_SUGID ? 1 : 0; 170 AUXARGS_ENTRY(pos, LINUX_AT_SYSINFO_EHDR, 171 imgp->proc->p_sysent->sv_shared_page_base); 172 #if 0 /* LINUXTODO: implement arm64 LINUX_AT_HWCAP */ 173 AUXARGS_ENTRY(pos, LINUX_AT_HWCAP, cpu_feature); 174 #endif 175 AUXARGS_ENTRY(pos, LINUX_AT_CLKTCK, stclohz); 176 AUXARGS_ENTRY(pos, AT_PHDR, args->phdr); 177 AUXARGS_ENTRY(pos, AT_PHENT, args->phent); 178 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum); 179 AUXARGS_ENTRY(pos, AT_PAGESZ, args->pagesz); 180 AUXARGS_ENTRY(pos, AT_BASE, args->base); 181 AUXARGS_ENTRY(pos, AT_FLAGS, args->flags); 182 AUXARGS_ENTRY(pos, AT_ENTRY, args->entry); 183 AUXARGS_ENTRY(pos, AT_UID, imgp->proc->p_ucred->cr_ruid); 184 AUXARGS_ENTRY(pos, AT_EUID, imgp->proc->p_ucred->cr_svuid); 185 AUXARGS_ENTRY(pos, AT_GID, imgp->proc->p_ucred->cr_rgid); 186 AUXARGS_ENTRY(pos, AT_EGID, imgp->proc->p_ucred->cr_svgid); 187 AUXARGS_ENTRY(pos, LINUX_AT_SECURE, issetugid); 188 #if 0 /* LINUXTODO: implement arm64 LINUX_AT_PLATFORM */ 189 AUXARGS_ENTRY(pos, LINUX_AT_PLATFORM, PTROUT(linux_platform)); 190 #endif 191 AUXARGS_ENTRY_PTR(pos, LINUX_AT_RANDOM, imgp->canary); 192 if (imgp->execpathp != 0) 193 AUXARGS_ENTRY_PTR(pos, LINUX_AT_EXECFN, imgp->execpathp); 194 if (args->execfd != -1) 195 AUXARGS_ENTRY(pos, AT_EXECFD, args->execfd); 196 AUXARGS_ENTRY(pos, AT_NULL, 0); 197 free(imgp->auxargs, M_TEMP); 198 imgp->auxargs = NULL; 199 KASSERT(pos - argarray <= LINUX_AT_COUNT, ("Too many auxargs")); 200 201 error = copyout(argarray, (void *)base, 202 sizeof(*argarray) * LINUX_AT_COUNT); 203 free(argarray, M_TEMP); 204 return (error); 205 } 206 207 static int 208 linux_elf_fixup(uintptr_t *stack_base, struct image_params *imgp) 209 { 210 211 LIN_SDT_PROBE0(sysvec, linux_elf_fixup, todo); 212 213 return (0); 214 } 215 216 /* 217 * Copy strings out to the new process address space, constructing new arg 218 * and env vector tables. Return a pointer to the base so that it can be used 219 * as the initial stack pointer. 220 * LINUXTODO: deduplicate against other linuxulator archs 221 */ 222 static int 223 linux_copyout_strings(struct image_params *imgp, uintptr_t *stack_base) 224 { 225 char **vectp; 226 char *stringp; 227 uintptr_t destp, ustringp; 228 struct ps_strings *arginfo; 229 char canary[LINUX_AT_RANDOM_LEN]; 230 size_t execpath_len; 231 struct proc *p; 232 int argc, envc, error; 233 234 p = imgp->proc; 235 arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings; 236 destp = (uintptr_t)arginfo; 237 238 if (imgp->execpath != NULL && imgp->auxargs != NULL) { 239 execpath_len = strlen(imgp->execpath) + 1; 240 destp -= execpath_len; 241 destp = rounddown2(destp, sizeof(void *)); 242 imgp->execpathp = (void *)destp; 243 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); 244 if (error != 0) 245 return (error); 246 } 247 248 /* Prepare the canary for SSP. */ 249 arc4rand(canary, sizeof(canary), 0); 250 destp -= roundup(sizeof(canary), sizeof(void *)); 251 imgp->canary = (void *)destp; 252 error = copyout(canary, imgp->canary, sizeof(canary)); 253 if (error != 0) 254 return (error); 255 256 /* Allocate room for the argument and environment strings. */ 257 destp -= ARG_MAX - imgp->args->stringspace; 258 destp = rounddown2(destp, sizeof(void *)); 259 ustringp = destp; 260 261 if (imgp->auxargs) { 262 /* 263 * Allocate room on the stack for the ELF auxargs 264 * array. It has up to LINUX_AT_COUNT entries. 265 */ 266 destp -= LINUX_AT_COUNT * sizeof(Elf64_Auxinfo); 267 destp = rounddown2(destp, sizeof(void *)); 268 } 269 270 vectp = (char **)destp; 271 272 /* 273 * Allocate room for argc and the argv[] and env vectors including the 274 * terminating NULL pointers. 275 */ 276 vectp -= 1 + imgp->args->argc + 1 + imgp->args->envc + 1; 277 vectp = (char **)STACKALIGN(vectp); 278 279 /* vectp also becomes our initial stack base. */ 280 *stack_base = (uintptr_t)vectp; 281 282 stringp = imgp->args->begin_argv; 283 argc = imgp->args->argc; 284 envc = imgp->args->envc; 285 286 /* Copy out strings - arguments and environment. */ 287 error = copyout(stringp, (void *)ustringp, 288 ARG_MAX - imgp->args->stringspace); 289 if (error != 0) 290 return (error); 291 292 /* Fill in "ps_strings" struct for ps, w, etc. */ 293 if (suword(&arginfo->ps_argvstr, (long)(intptr_t)vectp) != 0 || 294 suword(&arginfo->ps_nargvstr, argc) != 0) 295 return (EFAULT); 296 297 if (suword(vectp++, argc) != 0) 298 return (EFAULT); 299 300 /* Fill in argument portion of vector table. */ 301 for (; argc > 0; --argc) { 302 if (suword(vectp++, ustringp) != 0) 303 return (EFAULT); 304 while (*stringp++ != 0) 305 ustringp++; 306 ustringp++; 307 } 308 309 /* A null vector table pointer separates the argp's from the envp's. */ 310 if (suword(vectp++, 0) != 0) 311 return (EFAULT); 312 313 if (suword(&arginfo->ps_envstr, (long)(intptr_t)vectp) != 0 || 314 suword(&arginfo->ps_nenvstr, envc) != 0) 315 return (EFAULT); 316 317 /* Fill in environment portion of vector table. */ 318 for (; envc > 0; --envc) { 319 if (suword(vectp++, ustringp) != 0) 320 return (EFAULT); 321 while (*stringp++ != 0) 322 ustringp++; 323 ustringp++; 324 } 325 326 /* The end of the vector table is a null pointer. */ 327 if (suword(vectp, 0) != 0) 328 return (EFAULT); 329 330 if (imgp->auxargs) { 331 vectp++; 332 error = imgp->sysent->sv_copyout_auxargs(imgp, 333 (uintptr_t)vectp); 334 if (error != 0) 335 return (error); 336 } 337 338 return (0); 339 } 340 341 /* 342 * Reset registers to default values on exec. 343 */ 344 static void 345 linux_exec_setregs(struct thread *td, struct image_params *imgp, 346 uintptr_t stack) 347 { 348 struct trapframe *regs = td->td_frame; 349 struct pcb *pcb = td->td_pcb; 350 351 /* LINUXTODO: validate */ 352 LIN_SDT_PROBE0(sysvec, linux_exec_setregs, todo); 353 354 memset(regs, 0, sizeof(*regs)); 355 /* glibc start.S registers function pointer in x0 with atexit. */ 356 regs->tf_sp = stack; 357 #if 0 /* LINUXTODO: See if this is used. */ 358 regs->tf_lr = imgp->entry_addr; 359 #else 360 regs->tf_lr = 0xffffffffffffffff; 361 #endif 362 regs->tf_elr = imgp->entry_addr; 363 364 pcb->pcb_tpidr_el0 = 0; 365 pcb->pcb_tpidrro_el0 = 0; 366 WRITE_SPECIALREG(tpidrro_el0, 0); 367 WRITE_SPECIALREG(tpidr_el0, 0); 368 369 #ifdef VFP 370 vfp_reset_state(td, pcb); 371 #endif 372 373 /* 374 * Clear debug register state. It is not applicable to the new process. 375 */ 376 bzero(&pcb->pcb_dbg_regs, sizeof(pcb->pcb_dbg_regs)); 377 } 378 379 int 380 linux_rt_sigreturn(struct thread *td, struct linux_rt_sigreturn_args *args) 381 { 382 383 /* LINUXTODO: implement */ 384 LIN_SDT_PROBE0(sysvec, linux_rt_sigreturn, todo); 385 return (EDOOFUS); 386 } 387 388 static void 389 linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) 390 { 391 392 /* LINUXTODO: implement */ 393 LIN_SDT_PROBE0(sysvec, linux_rt_sendsig, todo); 394 } 395 396 static int 397 linux_vsyscall(struct thread *td) 398 { 399 400 /* LINUXTODO: implement */ 401 LIN_SDT_PROBE0(sysvec, linux_vsyscall, todo); 402 return (EDOOFUS); 403 } 404 405 struct sysentvec elf_linux_sysvec = { 406 .sv_size = LINUX_SYS_MAXSYSCALL, 407 .sv_table = linux_sysent, 408 .sv_transtrap = linux_translate_traps, 409 .sv_fixup = linux_elf_fixup, 410 .sv_sendsig = linux_rt_sendsig, 411 .sv_sigcode = &_binary_linux_locore_o_start, 412 .sv_szsigcode = &linux_szsigcode, 413 .sv_name = "Linux ELF64", 414 .sv_coredump = elf64_coredump, 415 .sv_imgact_try = linux_exec_imgact_try, 416 .sv_minsigstksz = LINUX_MINSIGSTKSZ, 417 .sv_minuser = VM_MIN_ADDRESS, 418 .sv_maxuser = VM_MAXUSER_ADDRESS, 419 .sv_usrstack = USRSTACK, 420 .sv_psstrings = PS_STRINGS, /* XXX */ 421 .sv_stackprot = VM_PROT_READ | VM_PROT_WRITE, 422 .sv_copyout_auxargs = linux_copyout_auxargs, 423 .sv_copyout_strings = linux_copyout_strings, 424 .sv_setregs = linux_exec_setregs, 425 .sv_fixlimit = NULL, 426 .sv_maxssiz = NULL, 427 .sv_flags = SV_ABI_LINUX | SV_LP64 | SV_SHP | SV_SIG_DISCIGN | 428 SV_SIG_WAITNDQ, 429 .sv_set_syscall_retval = linux_set_syscall_retval, 430 .sv_fetch_syscall_args = linux_fetch_syscall_args, 431 .sv_syscallnames = NULL, 432 .sv_shared_page_base = SHAREDPAGE, 433 .sv_shared_page_len = PAGE_SIZE, 434 .sv_schedtail = linux_schedtail, 435 .sv_thread_detach = linux_thread_detach, 436 .sv_trap = linux_vsyscall, 437 .sv_onexec = linux_on_exec, 438 .sv_onexit = linux_on_exit, 439 .sv_ontdexit = linux_thread_dtor, 440 .sv_setid_allowed = &linux_setid_allowed_query, 441 }; 442 443 static void 444 linux_vdso_install(const void *param) 445 { 446 447 linux_szsigcode = (&_binary_linux_locore_o_end - 448 &_binary_linux_locore_o_start); 449 450 if (linux_szsigcode > elf_linux_sysvec.sv_shared_page_len) 451 panic("invalid Linux VDSO size\n"); 452 453 __elfN(linux_vdso_fixup)(&elf_linux_sysvec); 454 455 linux_shared_page_obj = __elfN(linux_shared_page_init) 456 (&linux_shared_page_mapping); 457 458 __elfN(linux_vdso_reloc)(&elf_linux_sysvec); 459 460 memcpy(linux_shared_page_mapping, elf_linux_sysvec.sv_sigcode, 461 linux_szsigcode); 462 elf_linux_sysvec.sv_shared_page_obj = linux_shared_page_obj; 463 464 printf("LINUXTODO: %s: fix linux_kplatform\n", __func__); 465 #if 0 466 linux_kplatform = linux_shared_page_mapping + 467 (linux_platform - (caddr_t)elf_linux_sysvec.sv_shared_page_base); 468 #else 469 linux_kplatform = "arm64"; 470 #endif 471 } 472 SYSINIT(elf_linux_vdso_init, SI_SUB_EXEC, SI_ORDER_ANY, 473 linux_vdso_install, NULL); 474 475 static void 476 linux_vdso_deinstall(const void *param) 477 { 478 479 LIN_SDT_PROBE0(sysvec, linux_vdso_deinstall, todo); 480 __elfN(linux_shared_page_fini)(linux_shared_page_obj, 481 linux_shared_page_mapping); 482 } 483 SYSUNINIT(elf_linux_vdso_uninit, SI_SUB_EXEC, SI_ORDER_FIRST, 484 linux_vdso_deinstall, NULL); 485 486 static char GNU_ABI_VENDOR[] = "GNU"; 487 static int GNU_ABI_LINUX = 0; 488 489 /* LINUXTODO: deduplicate */ 490 static bool 491 linux_trans_osrel(const Elf_Note *note, int32_t *osrel) 492 { 493 const Elf32_Word *desc; 494 uintptr_t p; 495 496 p = (uintptr_t)(note + 1); 497 p += roundup2(note->n_namesz, sizeof(Elf32_Addr)); 498 499 desc = (const Elf32_Word *)p; 500 if (desc[0] != GNU_ABI_LINUX) 501 return (false); 502 503 *osrel = LINUX_KERNVER(desc[1], desc[2], desc[3]); 504 return (true); 505 } 506 507 static Elf_Brandnote linux64_brandnote = { 508 .hdr.n_namesz = sizeof(GNU_ABI_VENDOR), 509 .hdr.n_descsz = 16, 510 .hdr.n_type = 1, 511 .vendor = GNU_ABI_VENDOR, 512 .flags = BN_TRANSLATE_OSREL, 513 .trans_osrel = linux_trans_osrel 514 }; 515 516 static Elf64_Brandinfo linux_glibc2brand = { 517 .brand = ELFOSABI_LINUX, 518 .machine = EM_AARCH64, 519 .compat_3_brand = "Linux", 520 .emul_path = linux_emul_path, 521 .interp_path = "/lib64/ld-linux-x86-64.so.2", 522 .sysvec = &elf_linux_sysvec, 523 .interp_newpath = NULL, 524 .brand_note = &linux64_brandnote, 525 .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE 526 }; 527 528 Elf64_Brandinfo *linux_brandlist[] = { 529 &linux_glibc2brand, 530 NULL 531 }; 532 533 static int 534 linux64_elf_modevent(module_t mod, int type, void *data) 535 { 536 Elf64_Brandinfo **brandinfo; 537 struct linux_ioctl_handler**lihp; 538 int error; 539 540 error = 0; 541 switch(type) { 542 case MOD_LOAD: 543 for (brandinfo = &linux_brandlist[0]; *brandinfo != NULL; 544 ++brandinfo) 545 if (elf64_insert_brand_entry(*brandinfo) < 0) 546 error = EINVAL; 547 if (error == 0) { 548 SET_FOREACH(lihp, linux_ioctl_handler_set) 549 linux_ioctl_register_handler(*lihp); 550 stclohz = (stathz ? stathz : hz); 551 if (bootverbose) 552 printf("Linux arm64 ELF exec handler installed\n"); 553 } 554 break; 555 case MOD_UNLOAD: 556 for (brandinfo = &linux_brandlist[0]; *brandinfo != NULL; 557 ++brandinfo) 558 if (elf64_brand_inuse(*brandinfo)) 559 error = EBUSY; 560 if (error == 0) { 561 for (brandinfo = &linux_brandlist[0]; 562 *brandinfo != NULL; ++brandinfo) 563 if (elf64_remove_brand_entry(*brandinfo) < 0) 564 error = EINVAL; 565 } 566 if (error == 0) { 567 SET_FOREACH(lihp, linux_ioctl_handler_set) 568 linux_ioctl_unregister_handler(*lihp); 569 if (bootverbose) 570 printf("Linux ELF exec handler removed\n"); 571 } else 572 printf("Could not deinstall ELF interpreter entry\n"); 573 break; 574 default: 575 return (EOPNOTSUPP); 576 } 577 return (error); 578 } 579 580 static moduledata_t linux64_elf_mod = { 581 "linux64elf", 582 linux64_elf_modevent, 583 0 584 }; 585 586 DECLARE_MODULE_TIED(linux64elf, linux64_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY); 587 MODULE_DEPEND(linux64elf, linux_common, 1, 1, 1); 588 FEATURE(linux64, "AArch64 Linux 64bit support"); 589