Implemented scope

The independent ELF loader accepts ELF64 little-endian EM_AARCH64 ET_EXEC and ET_DYN, validates program headers and load intervals, maps PT_LOAD with their permissions, zeroes BSS, and creates an aligned stack containing argc, argv, envp, and Linux auxiliary vectors. A position-independent program loads at 0x10000000. PT_INTERP names the dynamic linker, which is loaded from the guest's namespace at 0x38000000 (AT_BASE), and the program starts there. This is a bounded 4 GiB guest address space with executable load segments below 1 GiB and an 8 MiB initial stack. Dynamically linked AArch32 programs are unsupported.

SVC #0 dispatches syscall number x8, arguments x0 through x5, and result x0. Failed calls return negative Linux errno values. Other SVC immediates, undefined instructions, and guest breakpoints terminate with a diagnostic. Unsupported syscalls return -ENOSYS.

Implemented syscall families cover file descriptors (read, write, vectored I/O, openat, close, lseek, dup, dup3, fcntl, pipe2, ioctl for terminals and FIONREAD), metadata and directory operations (fstat, newfstatat, statx, readlinkat, getdents64, mkdirat, unlinkat, renameat2, linkat, symlinkat, fchmodat, fchownat, utimensat, faccessat2, truncate, statfs, fsync, chdir, fchdir, getcwd), memory (brk, mmap with private file mappings and read-only shared ones, munmap, mprotect), processes (clone, execve, execveat, wait4, waitid, exit, exit_group, ids, process groups, umask), threads, futexes and signals (see Threads and signals), uname, clocks and sleeps, random bytes and resource queries. Networking adds host-backed sockets, socketpair, poll/select, epoll and eventfd through the shared stack; read-only virtual /etc files support guest libc DNS. See Networking for configuration, tests, and current semantic limitations. Guest structures and constants are encoded for AArch64 rather than copied from the host ABI.

File-backed writable MAP_SHARED is unsupported.

The virtual nodes:

PathContents and behavior
/devnull, zero, random, urandom, and descriptor links under fd
/procGuest self/exe, self/maps, self/cmdline, self/status, self/fd, and AArch64 cpuinfo
/tmp--isolated only: ephemeral in-memory files and directories. Otherwise the sysroot's or the host's

No Maxwell, Vulkan, OpenGL, DRM/KMS, display, or graphics service is initialized by this runtime.


Made from docs/platforms/gnuabi/README.md at 69237645142c. GPL-3.0-or-later.