mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 02:40:28 +00:00
Mint APE Loader v2.0
I opted for 2.0 rather than 1.10 for two reasons: one, believe it or not, it saves a byte (on x86_64 at least.) Two, (and less jokingly,) the change to no longer modify `argv[0]` is breaking.
This commit is contained in:
parent
f94c11d978
commit
561e767d63
9 changed files with 4 additions and 3 deletions
|
@ -1021,7 +1021,7 @@ int main(int argc, char **argv, char **envp) {
|
||||||
Emit("usage: ape PROG [ARGV1,ARGV2,...]\n"
|
Emit("usage: ape PROG [ARGV1,ARGV2,...]\n"
|
||||||
" ape - PROG [ARGV0,ARGV1,...]\n"
|
" ape - PROG [ARGV0,ARGV1,...]\n"
|
||||||
" ($0 = PROG.ape) [ARGV1,ARGV2,...]\n"
|
" ($0 = PROG.ape) [ARGV1,ARGV2,...]\n"
|
||||||
"actually portable executable loader silicon 1.9\n"
|
"actually portable executable loader silicon 2.0\n"
|
||||||
"copyright 2023 justine alexandra roberts tunney\n"
|
"copyright 2023 justine alexandra roberts tunney\n"
|
||||||
"https://justine.lol/ape.html\n");
|
"https://justine.lol/ape.html\n");
|
||||||
_exit(1);
|
_exit(1);
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef COSMOPOLITAN_APE_APE_H_
|
#ifndef COSMOPOLITAN_APE_APE_H_
|
||||||
#define COSMOPOLITAN_APE_APE_H_
|
#define COSMOPOLITAN_APE_APE_H_
|
||||||
|
|
||||||
#define APE_VERSION_MAJOR 1
|
#define APE_VERSION_MAJOR 2
|
||||||
#define APE_VERSION_MINOR 9
|
#define APE_VERSION_MINOR 0
|
||||||
#define APE_VERSION_STR APE_VERSION_STR_(APE_VERSION_MAJOR, APE_VERSION_MINOR)
|
#define APE_VERSION_STR APE_VERSION_STR_(APE_VERSION_MAJOR, APE_VERSION_MINOR)
|
||||||
#define APE_VERSION_NOTE APE_VERSION_NOTE_(APE_VERSION_MAJOR, APE_VERSION_MINOR)
|
#define APE_VERSION_NOTE APE_VERSION_NOTE_(APE_VERSION_MAJOR, APE_VERSION_MINOR)
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,7 @@ for x in .ape \
|
||||||
.ape-1.7 \
|
.ape-1.7 \
|
||||||
.ape-1.8 \
|
.ape-1.8 \
|
||||||
.ape-1.9 \
|
.ape-1.9 \
|
||||||
|
.ape-2.0 \
|
||||||
.ape-blink-0.9.2 \
|
.ape-blink-0.9.2 \
|
||||||
.ape-blink-1.0.0; do
|
.ape-blink-1.0.0; do
|
||||||
rm -f \
|
rm -f \
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue