mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
b46ac13504
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 |
||
---|---|---|
.. | ||
public | ||
ape.lds | ||
ape.mk | ||
ape.S | ||
apeinstall.sh | ||
apeuninstall.sh | ||
config.h | ||
idata.internal.h | ||
loader-elf.S | ||
loader-macho.lds | ||
loader-macho.S | ||
loader.c | ||
loader.h | ||
loader.lds | ||
macros.internal.h | ||
mz.ansi | ||
notice.inc | ||
relocations.h | ||
sections.internal.h |