From 78d3b86ec74012e0a2b5e2d2778077b0ab44e4f8 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Mon, 1 Jul 2024 01:06:47 -0700 Subject: [PATCH] Fix Android support Thanks to @aj47 (techfren.net) the new Cosmo memory manager is confirmed to be working on Android!! The only issue turned out to be forgetting to update the program address in the linker script. We now know w/ absolute certainty that APE binaries as complex as llamafile, now work correctly. --- ape/aarch64.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ape/aarch64.lds b/ape/aarch64.lds index c63ce4295..356ff3ae7 100644 --- a/ape/aarch64.lds +++ b/ape/aarch64.lds @@ -12,7 +12,7 @@ OUTPUT_FORMAT("elf64-littleaarch64", SECTIONS { - . = SEGMENT_START("text-segment", 0x010000000000); + . = SEGMENT_START("text-segment", 0x000800000000); __executable_start = .; . += SIZEOF_HEADERS;