cosmopolitan/ape
Justine Tunney b46ac13504
Introduce new jartsr=' ape prefix
Files beginning with "MZqFpD" are Actually Portable Executables,
which have a printf statement in the first 4096 bytes with octal
codes that specify the ELF header. APE also specifies `jartsr='`
as an alternative prefix, intended for binaries that do not want
to be identified as Windows executables. Like the \177ELF magic,
all these prefixes decode as x86 jump instructions that could be
used for 16-bit bootloaders or 32-bit / 64-bit flat executables.
Most importantly they provide a fallback path for Thompson shell
copmatible command interpreters, which do not require a shebang,
e.g. bash, zsh, fish, bourne, almquist, etc. Please note that in
order to meet the requirements of POSIX.1, the single quote must
be followed by a newline character, before any null bytes occur.
See also: https://www.austingroupbugs.net/view.php?id=1250
2022-11-10 21:18:32 -08:00
..
public Improve open source compatibility 2022-09-08 03:19:35 -07:00
ape.lds Work towards zipos / open(argv[0]) on metal (#667) 2022-11-06 00:29:47 -07:00
ape.mk Fix missing Makefile dependency 2022-11-06 01:01:34 -07:00
ape.S Introduce new jartsr=' ape prefix 2022-11-10 21:18:32 -08:00
apeinstall.sh Introduce new jartsr=' ape prefix 2022-11-10 21:18:32 -08:00
apeuninstall.sh Introduce new jartsr=' ape prefix 2022-11-10 21:18:32 -08:00
config.h Improve memory safety 2021-10-13 17:27:13 -07:00
idata.internal.h Change support vector to Windows 8+ 2022-09-15 03:55:05 -07:00
loader-elf.S Rename LINUX to _HOSTLINUX etc. to reduce clashes (#655) 2022-10-10 20:31:25 -07:00
loader-macho.lds Write tests for new APE loader and fix bugs 2022-05-22 05:45:38 -07:00
loader-macho.S Rename LINUX to _HOSTLINUX etc. to reduce clashes (#655) 2022-10-10 20:31:25 -07:00
loader.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
loader.h Make some minor touchups for nightlies 2022-09-09 19:12:40 -07:00
loader.lds Add .PLEDGE/.CPU/.MEMORY/etc. to Landlock Make 1.2 2022-08-14 20:16:44 -07:00
macros.internal.h [metal] Fix bug: do not initialize IDT & TSS if unneeded (#654) 2022-10-10 20:54:46 -07:00
mz.ansi Initial import 2020-06-15 07:18:57 -07:00
notice.inc Initial import 2020-06-15 07:18:57 -07:00
relocations.h Optimize memory layout 2022-09-12 04:26:52 -07:00
sections.internal.h Work towards zipos / open(argv[0]) on metal (#667) 2022-11-06 00:29:47 -07:00