cosmopolitan/ape
Justine Tunney 6ffed14b9c
Rewrite memory manager
Actually Portable Executable now supports Android. Cosmo's old mmap code
required a 47 bit address space. The new implementation is very agnostic
and supports both smaller address spaces (e.g. embedded) and even modern
56-bit PML5T paging for x86 which finally came true on Zen4 Threadripper

Cosmopolitan no longer requires UNIX systems to observe the Windows 64kb
granularity; i.e. sysconf(_SC_PAGE_SIZE) will now report the host native
page size. This fixes a longstanding POSIX conformance issue, concerning
file mappings that overlap the end of file. Other aspects of conformance
have been improved too, such as the subtleties of address assignment and
and the various subtleties surrounding MAP_FIXED and MAP_FIXED_NOREPLACE

On Windows, mappings larger than 100 megabytes won't be broken down into
thousands of independent 64kb mappings. Support for MAP_STACK is removed
by this change; please use NewCosmoStack() instead.

Stack overflow avoidance is now being implemented using the POSIX thread
APIs. Please use GetStackBottom() and GetStackAddr(), instead of the old
error-prone GetStackAddr() and HaveStackMemory() APIs which are removed.
2024-06-22 05:45:11 -07:00
..
public Improve open source compatibility 2022-09-08 03:19:35 -07:00
aarch64.lds Rewrite memory manager 2024-06-22 05:45:11 -07:00
ape-m1.c Loaders rewrite argv[0] for old binaries (#1170) 2024-05-07 20:42:18 -04:00
ape.h Mint APE Loader v1.10 2023-12-31 11:43:13 -08:00
ape.internal.h Get aarch64 hello world working 2023-05-10 04:20:47 -07:00
ape.lds Rewrite memory manager 2024-06-22 05:45:11 -07:00
ape.S Drop support for Windows 8 2024-05-29 19:37:47 -07:00
apeinstall.sh Reapply apeinstall.sh binfmt flags (#1171) 2024-05-08 01:48:48 -04:00
apeuninstall.sh Remove feature for embedding blink in ape scripts 2024-01-26 22:30:56 -08:00
BUILD.mk Add some missing build dependencies 2024-05-20 17:23:25 -07:00
idata.internal.h flip et / noet in modelines 2023-12-07 22:17:11 -05:00
launch.S aarch64 loader passes os (#1042) 2023-12-31 06:42:36 -08:00
loader-macho.S Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
loader.c Loaders rewrite argv[0] for old binaries (#1170) 2024-05-07 20:42:18 -04:00
loader.lds more modeline errata (#1019) 2023-12-16 23:07:10 -05:00
macros.internal.h Rerun clang-format on the repo (#1217) 2024-06-15 16:34:48 -04: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 Fix thread-local storage bugs on aarch64 2024-05-08 04:20:22 -07:00
start.S Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
systemcall.S Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00