Skip to content

Commit 81949f0

Browse files
committed
Mint APE Loader v1.10
1 parent c9550af commit 81949f0

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

ape/ape-m1.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <time.h>
3636
#include <unistd.h>
3737

38-
#define pagesz 16384
38+
#define pagesz 16384
3939
/* maximum path size that cosmo can take */
4040
#define PATHSIZE (PATH_MAX < 1024 ? PATH_MAX : 1024)
4141
#define SYSLIB_MAGIC ('s' | 'l' << 8 | 'i' << 16 | 'b' << 24)
@@ -726,7 +726,7 @@ __attribute__((__noreturn__)) static void Spawn(const char *exe, int fd,
726726

727727
register long *x0 __asm__("x0") = sp;
728728
register char *x2 __asm__("x2") = path;
729-
register int x3 __asm__("x3") = 8; /* _HOSTXNU */
729+
register int x3 __asm__("x3") = 8; /* _HOSTXNU */
730730
register struct Syslib *x15 __asm__("x15") = lib;
731731
register long x16 __asm__("x16") = e->e_entry;
732732
__asm__ volatile("mov\tx1,#0\n\t"
@@ -1012,8 +1012,8 @@ int main(int argc, char **argv, char **envp) {
10121012
Emit("usage: ape PROG [ARGV1,ARGV2,...]\n"
10131013
" ape - PROG [ARGV0,ARGV1,...]\n"
10141014
" ($0 = PROG.ape) [ARGV1,ARGV2,...]\n"
1015-
"actually portable executable loader silicon 1.9\n"
1016-
"copyright 2023 justine alexandra roberts tunney\n"
1015+
"actually portable executable loader silicon 1.10\n"
1016+
"copyrights 2023 justine alexandra roberts tunney\n"
10171017
"https://justine.lol/ape.html\n");
10181018
_exit(1);
10191019
} else {

ape/ape.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define COSMOPOLITAN_APE_APE_H_
33

44
#define APE_VERSION_MAJOR 1
5-
#define APE_VERSION_MINOR 9
5+
#define APE_VERSION_MINOR 10
66
#define APE_VERSION_STR APE_VERSION_STR_(APE_VERSION_MAJOR, APE_VERSION_MINOR)
77
#define APE_VERSION_NOTE APE_VERSION_NOTE_(APE_VERSION_MAJOR, APE_VERSION_MINOR)
88

ape/apeuninstall.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ for x in .ape \
5454
.ape-1.7 \
5555
.ape-1.8 \
5656
.ape-1.9 \
57+
.ape-1.10 \
5758
.ape-blink-0.9.2 \
5859
.ape-blink-1.0.0; do
5960
rm -f \

build/bootstrap/ape.aarch64

-288 Bytes
Binary file not shown.

build/bootstrap/ape.elf

-187 Bytes
Binary file not shown.

build/bootstrap/ape.macho

-187 Bytes
Binary file not shown.

tool/cosmocc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ On Apple Silicon, `aarch64-unknown-cosmo-cc` produces ELF binaries. If
108108
you build a hello world program, then you need to say `ape ./hello`. If
109109
you don't have an `ape` command then run `cc -o ape bin/ape-m1.c` which
110110
should be moved to `/usr/local/bin/ape`. Your APE interpreter might
111-
already exist under a path like `$TMPDIR/.ape-1.9`. It's important to
111+
already exist under a path like `$TMPDIR/.ape-1.10`. It's important to
112112
note this is only a gotcha for the cross compiler. Your `cosmocc`
113113
compiler wraps the actual ELF binaries with a shell script that'll
114114
extract and compile an APE loader automatically, as needed. This also

0 commit comments

Comments
 (0)