Mint APE Loader v1.5

This change ports APE Loader to Linux AARCH64, so that Raspberry Pi
users can run programs like redbean, without the executable needing
to modify itself. Progress has also slipped into this change on the
issue of making progress better conforming to user expectations and
industry standards regarding which symbols we're allowed to declare
This commit is contained in:
Justine Tunney 2023-07-26 13:54:49 -07:00
parent 6843150e0c
commit 7e0a09feec
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
510 changed files with 1783 additions and 1483 deletions

View file

@ -32,7 +32,7 @@
#include "libc/zipos/zipos.internal.h"
#include "third_party/puff/puff.h"
STATIC_YOINK("__get_symbol");
__static_yoink("__get_symbol");
static pthread_spinlock_t g_lock;
struct SymbolTable *__symtab; // for kprintf
@ -111,7 +111,7 @@ static struct SymbolTable *GetSymbolTableFromElf(void) {
* This uses multiple strategies to find the symbol table. The first
* strategy, depends on whether or not the following is linked:
*
* STATIC_YOINK("__zipos_get");
* __static_yoink("__zipos_get");
*
* In that case, the symbol table may be read from `/zip/.symtab` which
* is generated by `o//tool/build/symtab.com`. The second strategy is to